Understanding ASP.NET Validation Controls
The five types of ASP.NET Validation Controls in ASP.NET Framework include:
· RequiredField Validation control: prompts message if any input field is left blank. This validation control can also be used to prompt message to the user if he or she has left any input field with its default value.
· Range Validation control: Prompts message to the user, if the data entered in the input field is not within the range of the values specified by the Maximum and Minimum properties of the validation control.
· Comparison Validation control: Allows the user to compare two values and check for comparisons such as equality, greater-than, less-than etc. In addition you can check whether the data entered in the input field is of the data type as specified by you.
· RegularExpression Validation control: Allows you to validate if the format of a certain input field is correct or not. You can check the validation of the commonly performed formats such as social security numbers, e-mail addresses, telephone numbers, and postal code.
· Custom Validation control: Allows you to define your own condition for validating the data in the input fields. Two validation functions can be performed using Custom Validation control: first on the server-side and second on the client-side. These functions contain logic defined by you to validate the input fields. These functions returns the True value and False value, if the condition you specified is correct or not respectively.
Website: www.cyber-spy.com | Filesize: 40kb
No of Page(s): 3
Click here to download Understanding ASP.NET Validation Controls.
Related Copyrighted Books
Pro ASP.NET 3.5 Server Controls and AJAX Components
Professional Web Parts and Custom Controls with ASP.NET 2.0 (Wrox Professional Guides)
Programming ASP.NET AJAX: Build rich, Web 2.0-style UI with ASP.NET AJAX
ASP.NET Data Web Controls Kick Start
Developing Microsoft ASP.NET Server Controls and Components (Pro-Developer)