Validating user input in asp net web pages
Many Web pages with Terms of Service include a Check Box titled "I agree to the above terms" that must be checked before continuing.
If any of the validation fails, the entire page is set to invalid.
Before saving the data entered by the user into a webform, we will have to validate the data.
A web form is form which is used to accept data from the user in a web application.
The important properties of the Required Field Validator Control are: Text : Sets the error message displayed by the control.
Control To Validate : Specifies the ID of the control that you want to validate.
We can add validation controls to a webform just like any other controls.