asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Web Forms Validation

Web Forms Validation

ASP.NET Web Forms   Web Forms Server Controls


This section covers each of the different ways to validate user input in Web Forms, using the built-in ASP.NET validation controls.

For information about See this topic
Background information about using validation controls Introduction to Validating User Input in Web Forms
What validation controls are available and what types of validation you can perform with them Types of Validation
How to make sure users don’t skip a field. Validating Required Entries
How to make sure users enter only one of a restricted set of values. Validating Against a Specific Value
How to make sure users enter only a date, or a number, or some other data format. Validating Against a Data Type
How to check a user’s entry against information in a database. Validating Against Values in a Database
How to check that a user’s entry follows a specific sequence of numbers, letters, or other characters ( such as a phone number, postal code, email address, and so on ) . Validating Against Patterns
How to check that a user’s entry falls between a specified low and high value. Validating Against a Range of Values
How to create your own validation logic and tie it to a validation control. Validating with a Custom Function
How to determine where error messages are displayed. Controlling Validation Message Display
How to set font, color, and other attributes of error messages. Formatting Validation Error Messages
How error message display affects the layout of your page. Specifying Error Message Layout
How to create your own error display. Displaying Custom Error Messages
How to call validation controls from your own code. Validating Programmatically
How to test in your code whether the user’s entries passed validation checking. Testing Validity Programmatically
How validation controls work under specific circumstances and how they interact with one another Special-Case Validation Results
How to turn off validation in code. Disabling Validation at Run Time
How validation works in browsers that support Dynamic HTML ( such as Internet Explorer ) Client-Side Validation
Creating custom client-side validation. Enhancing or Replacing Client-Side Validation
How to allow users to submit a form even if it has errors on it. Allowing Posting with Client-Side Validation Errors
How to control whether validation controls perform client validation or not. Controlling Client vs. Server Validation

See Also

ASP.NET Syntax for Validation Controls   Data Entry Validation ( Client-Side )



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note