CompareValidator Control in ASP.Net

  • CompareValidator control is used to compare/match the value of one input control to the value of another input control.
  • Mostly this control is used to Entering the Password detail in Registration  form.
  • For this control we must specify the input Datatype for comparison.
  • Input Type may be:
    – String 
    – Date 
    – Currency 
    – Integer
    – Double
  • Here we have to set two property for validation.
  • ControlToValidate The main input control means Original first password.
  • ControlToComapre The second input control which is compare with main control, means confim -password control.

use compare validator control in asp.net

How to use compare validator control in asp.net

use compare validator control in asp.net

How to use compare validator control in asp.net

 

use compare validator control in asp.net

How to use compare validator control in asp.net

 

use compare validator control in asp.net

How to use compare validator control in asp.net

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha *