ASP.NET Web Forms - Validation Server Controls
Validation server controls are used to validate user input.
Validation Server Controls
Validation server controls are used to validate the data of input controls. If the data fails validation, an error message is displayed to the user.
The syntax for creating a Validation server control is:
| Validation Server Controls | Description |
|---|---|
| CompareValidator | Compare the value of one input control with the value of another input control or a fixed value |
| CustomValidator | Allows you to write a method to handle the validation of input values |
| RangeValidator | Check whether the user's input value is between two values |
| RegularExpressionValidator | Ensure that the value of an input control matches a specified pattern |
| RequiredFieldValidator | Make an input control a required (mandatory) field |
| ValidationSummary | Display a report of all validation errors on the page |