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:
<asp:control_name id="some_id" runat="server" />
| Validation Server Controls | Description |
|---|---|
| CompareValidator | Compares the value of one input control with the value of another input control or with a fixed value. |
| CustomValidator | Allows you to write a method to handle the validation of the input value. |
| RangeValidator | Checks whether the user input value is between two values. |
| RegularExpressionValidator | Ensures that the value of the input control matches a specified pattern. |
| RequiredFieldValidator | Makes the input control a required (mandatory) field. |
| ValidationSummary | Displays a report of all validation errors on the webpage. |
Other Extensions