Validation Server Control
- Previous Page WebForms Controls
- Next Page ASP.NET Tutorial
Validation server controls are used to validate user input.
Validation Server Control
Validation server controls are used to validate the data of input controls. If the data does not pass 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 Control | Description |
---|---|
CompareValidator | Compares the value of one input control with another input control or a fixed value. |
CustomValidator | Allows you to write a method to handle the validation of input values. |
RangeValidator | Checks the input value within a range of two values. |
RegularExpressionValidator | Ensures that the value of the input control matches the specified pattern. |
RequiredFieldValidator | It is an input control that becomes a required (mandatory) field. |
ValidationSummary | Display a report of all validation errors in the web page. |
- Previous Page WebForms Controls
- Next Page ASP.NET Tutorial