Validation is a very important part of any web application. The User's input must be validate just before sending across different layers of the application.
Why Validation controls are used:
To implement the logic of presentation .
To validate user input data.
Data format, data type and data range is used for validation.
The validation control cl***es are inherited from the BaseValidator cl*** hence they inherit its properties and methods. Therefore, it would help to take a look at the properties and the methods of this base cl***, which are common for all the validation controls.
ASP.NET validation controls validate the user input data to ensure that useless, unauthenticated, or contradictory data don't get stored.
ASP.NET provides the following validation:
ValidationSummary
RegularExpressionValidator
CustomValidator
RangeValidator
RequiredFieldValidator
CompareValidator
Comment