This control not allow user skip an entry.
Example
1. Create a ASP.NET website then add Standard TextBox and RequiredFieldValidator.
2. Select your RangeValidator and set require properties for validate (see Table 1).
Properties | Value |
---|---|
ControlToValidate | TextBox1 |
ErrorMassage | Please Input Name !! |
Table 1: Require Properties for RequiredFieldValidator
3. Test your application you will see error message when you don't entry anything in TextBox1 (Figure 1).
Figure 1: Require Check Example
##############################
RangeValidaton << Previous Chapter || Next Chapter >> ValidationSummary
##############################
RangeValidaton << Previous Chapter || Next Chapter >> ValidationSummary
No comments:
Post a Comment