The server side validation routine must be called from the control's Server Validate event handler. The basic syntax for the control is as given: The Validation Summary control does not perform any validation but shows a summary of all errors in the page.
The server side validation routine should be written in any . The summary displays the values of the Error Message property of all validation controls that failed validation.
The client side validation can check for the user input data for range and type and server side validation can check for matching of data with database.
Both server side and client side validation can be used for total solution. NET has provided an additional control that complements the validator controls.
The validation control classes are inherited from the Base Validator class hence they inherit its properties and methods.
Therefore, it would help to take a look at the properties and the methods of this base class, which are common for all the validation controls: The Regular Expression Validator allows validating the input text by matching against a pattern of a regular expression.
The Validation Summary control is reporting control, which is used by the other validation controls on a page.
You can use this validation control to consolidate errors reporting for all the validation errors that occur on a page instead of leaving this up to each and every individual validation control.
The client side validation routine should be written in a scripting language, such as Java Script or VBScript, which the browser can understand.The regular expression is set in the Validation Expression property.The following table summarizes the commonly used syntax constructs for regular expressions: The Custom Validator control allows writing application specific custom validation routines for both the client side and the server side validation.The complete code for the above Validation Summary is as: I hope that this article would have helped you in understanding the Validation Controls in ASP. Please share it if you know more about this article.Your feedback and constructive contributions are welcome.