Unit 2 - Validation Controls
Unit 2 - Validation Controls
ASP.NET
Prepared by,
Asst.prof. Dharmendrasinh Rathod
Parul Institute of Computer Application
Parul University
Validation
If you don’t enter any value into the age field and submit
the form, no error message is displayed.
If you want to require a user to enter a value, you must
associate a RequiredFieldValidator with the form field.
Don’t forget to set the Type property when using the
RangeValidator control.
By default, the Type property has the value String, and the
RangeValidator performs a string comparison to determine
whether a values falls between the minimum and maximum
value.
CompareValidator