How to use CompareValidator in ASP.net

By Super Man

How you can use comparevalidator in asp.net to compare two textbox values.

You can compare two textbox value or one textbox value to another value then you can make use of CompareValidator control.

you just need to set ControlToCompare and ControlToValidate property of CompareValidator control.

Forex. In registration form , you must have password and retype password must have to be same.

then you can set ControlToCompare to property to PasswordText control. and ControlToValidate property to RetypePasswordtext control.

How to use CompareValidator in ASP.net  (1489 Views)