DEMO
Properties | Description |
---|---|
Type | it specifies the data type |
ControlToCompare | it specifies the value of the input control to compare with |
ValueToCompare | it specifies the constant value to compare with |
Operator | it specifies the comparison operator, the available values are: Equal, NotEqual, GreaterThan, GreaterThanEqual, LessThan, LessThanEqual and DataTypeCheck |
First - Add New - Web Form - and Select Button & Labels & TextBoxs From ToolBox.
Select - Compare Validation Control From Validation Tool
Next - Select Compare Validation Click F4 Property Window for Password Control to Validate = txtPassword & Control to Compare =txtConfirmPassword Error Message empty
Next - Select Compare Validation Press - F4 Property Window for Confirm Password Control to Validate =txtConfirmPassword & Control to Compare =txtPassword Error Message Given to Required
Next - F5 Click - Run the Form - Button Enter the Password Incorrect Show the Error Message below like that
Now Enter the Correct Password Hide the Error Message
0 comments:
Post a Comment