ASP.NET : RequiredFieldValidator

RequiredFieldValidator 
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).


PropertiesValue
ControlToValidateTextBox1
ErrorMassagePlease 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

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...