Wednesday, 26 September 2012

Validation Controls

=>RequiredFieldValidator 

it is used for compulson.User can not leave the entry blank.
property:"controltovalidate" in this property enter the textbox name on which you want to implement.

=>CompareValidator

it is used to match the values of two textboxes.  
ex:password matcher.
property:"controltovalidate" in this property enter the textbox name on which you want to implement.
"controltocompare":name the textbox from which you want to compare

=>RangeValidator

declaring the range.
ex:mobile no, range maximum 10 no,
property:"controltovalidate" in this property enter the textbox name on which you want to implement.
"maximumvalue":in which you enter the maximum value
"minimumvalue";in which you declare the minimum value.


=>RegularExpresionValidator


for determining particular format.
ex:selection of email id.
property:"controltovalidate" in this property enter the textbox name on which you want to implement.
"validateexpression":to determine the particular format
select "interneturl"  from "validateexpression" property for the email id format.
property "errormessage":to show the error message enter the message you want to display to users.common to all controls.


No comments :

Post a Comment