A Validation server control is used to validate the data of an input control.
If the data does not pass validation, it will display an error message to the user.
With this control, the validation fails if the input value does not change from its initial value. By default, the initial value is an empty string ("").
***********************************************************************************************************
The error message displayed in this control is specified by the ErrorMessage property of each validation control. If the ErrorMessage property of the validation control is not set, no error message is displayed for that validation control
http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_validationsum
ASP.NET CompareValidator Control
The CompareValidator control is used to compare the value of one input control to the value of another input control or to a fixed value.
Example :
http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_comparevalidator
***********************************************************************************************************ASP.NET CustomValidator Control
The CustomValidator control allows you to write a method to handle the validation of the value entered.
Example :
http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_customvalidator
***********************************************************************************************************
ASP.NET RangeValidator Control
The RangeValidator control is used to check that the user enters an input value that falls between two values. It is possible to check ranges within numbers, dates, and characters.Example :
http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_rangevalidator
***********************************************************************************************************
ASP.NET RegularExpressionValidator Control
The RegularExpressionValidator control is used to ensure that an input value matches a specified pattern.Example :
http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_regularexpvalidator
***********************************************************************************************************
ASP.NET RequiredFieldValidator Control
The RequiredFieldValidator control is used to make an input control a required field.
With this control, the validation fails if the input value does not change from its initial value. By default, the initial value is an empty string ("").
Example :
http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_reqfieldvalidator***********************************************************************************************************
ASP.NET ValidationSummary Control
The ValidationSummary control is used to display a summary of all validation errors occurred in a Web page.
The error message displayed in this control is specified by the ErrorMessage property of each validation control. If the ErrorMessage property of the validation control is not set, no error message is displayed for that validation control
Example :
http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_validationsum
No comments:
Post a Comment