ASP.NET Video Tutorials
ASP.NET Validation Controls

ASP.NET Validation controls include RangeValidator, CompareValidator, RegularExpressionValidator etc

ASP.NET Validation Controls

1 comments

ASP.NET validation controls allow us to validate the data that the user has typed into a web form before we accept the data from the user.

Validation Control Basic

0 comments

Validation controls are associated with an input form field by using the ControlToValidate property of the validation control. This property must be set to the name/ID of the input field that we need to validate.

Client-side & Server-side Validation

0 comments

Validation controls use the built-in Javascript processor to validate the input form field in order to improve the user experience. Using the Javascript processor in the browser prevents the round-trip from the form to the server before we inform the user of the errors on the form.

Error Message and Display Property of Validation Controls

0 comments

Error messages are used to inform the user of the errors that have occurred on the form so the user may correct them. The Text property of validation controls is used to set the error message.

ASP.NET Validation Group

2 comments

Sometimes you may have two independent forms that you want to validate but because the button control will trigger the validation process of all the controls in the page then you need to group only the controls that are meant to work with different buttons in a group

CausesValidation Property of Button

0 comments

The normal behavior of a button is to send a form to a server for processing. Because of this buttons will usually trigger the validation controls on a page in order to make sure the form field input are validated before they are submitted to the server

RangeValidator Control

0 comments

This control is used to check whether a user has typed in a value that falls between a range of value. There are five properties that you should set in order to use this control.

RegularExpressionValidator

0 comments

This is used to compare a value in a form field to a regular expression. You can use it to check email address, postal codes, website address, social security number or any string patterns that you know how it is formatted.

CompareValidator Control

0 comments

We described the CompareValidator briefly in our previous video where we use it to compare the value a user has entered to a built-in Type such as Integer (we checked to see if user has entered whole number) otherwise they get error message

ValidationSummary Control

1 comments

This control allows you to display all the validation errors on the page in one location. i explained in the previous videos that the ErrorMessage property is specifically for the ValidationSummary control and not for the validation control itself

Powered by WishList Member - Membership Site Software