Validation Web Server Controls
There is a set of Web server controls that you can use to validate input on your Web Forms pages. These controls ensure that the information that a user has provided matches the requirements of your application. There are standard controls for different types of validation, such as range checking or pattern matching, and a custom control that you can use to establish your own validation criteria. For more information on validation, see Introduction to Validating User Input in Web Forms.
The validation controls listed below appear on the Web Forms tab of the Toolbox.
In the Visual Basic and Visual C# Documentation
- Ensures that the user does not skip a required field when entering data on a Web Forms page. For details, see Validating Required Entries for ASP.NET Server Controls.
- Compares a user's entry against a constant value, against the property value of another control, or against a database value. For details, see Validating Against a Specific Value for ASP.NET Server Controls or Validating Against a Data Type for ASP.NET Server Controls.
- Ensures that a user's entry is between specified upper and lower bounds. For details, see Validating Against a Range of Values for ASP.NET Server Controls.
- Ensures that a user's entry matches a pattern defined by a regular expression. For details, see Validating Against Patterns for ASP.NET Server Controls.
- Ensures that a user's entry matches validation logic you create yourself. For details, see Validating with a Custom Function for ASP.NET Server Controls.
- Provides a central location to display validation error messages. For details, see Controlling Validation Error Message Display for ASP.NET Server Controls.
- Web Forms Validation
- Lists topics that provide information on how to use the validation controls to verify user input on a Web Forms page.
- Introduction to Validating User Input in Web Forms
- Provides background information about using validation controls.
- Client-Side Validation for ASP.NET Server Controls
- Explains how validation works in browsers that support Dynamic HTML (such as Internet Explorer).
- Special-Case Validation Results for ASP.NET Server Controls
- Describes how validation controls work under specific circumstances and how they interact with one another.
- Controlling Validation Error Message Display for ASP.NET Server Controls
- Gives directions for specifying where error messages are displayed.
- Testing Validity Programmatically for ASP.NET Server Controls
- Gives directions for testing in your code whether the user's entries passed validation checking.