Easy Tutorial
❮ Met Websecurity Requireauthenticateduser Prop Webcontrol Standard Forecolor ❯

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 does not pass validation, an error message is displayed to the user.

The syntax for creating a Validation server control is:

Validation Server Control Description
CompareValidator Compares the value of an 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 Checks if 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
❮ Met Websecurity Requireauthenticateduser Prop Webcontrol Standard Forecolor ❯