Validating integer with regularexpressionvalidator

Source Code The server side validation you write does not need to provide the exact same validation as that of the client side 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.

Server side validation involves performing checks on server instead of client.

This is most secure form but comes at cost of performance. NET introduced smart validation server controls to implement page level validations. Usually, Validation is invoked in response to user actions like clicking submit button or entering data.

Validation is a set of rules that you apply to the data you collect.

In this way, we can bring certain degree of discipline in end user.

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 validation summary control will collect all the error messages of all the non-valid controls and put them in a tidy list.

It work on both end; first it will work on client validation and than on server validation. It can most commonly be used when you need to confirm password entered by the user at the registration time. Range Validator Control The Range Validator Server Control is another validator control, which checks to see if a control value is within a valid range.

At any cost server validation will work always whether client validation is executed or not. The attributes that are necessary to this control are: Maximum Value, Minimum Value, and Type.

You can have a Required Field Validator control for each form element on which you wish to enforce Mandatory Field rule.

Tags: , ,