The code will verify the password entered by the user and it should be equal.If it is not equal then the message inside the Error Message property will be displayed.For example, if only CRL checking is enabled and the certificate doesn't have a CRL URI, if this option is enabled the connection is blocked.
Often the failures are reported as "Unknown revocation state" errors.
Java Script was commonly used by many developers and the main disadvantage of this is that developers had to write lot of code. NET simplified this task by providing us with built-in Web Form controls.
With these controls you can force the user to input correct entry into the appropriate fields.
It will check for the specific pattern which should match with the code.
You have to specify a regular expression using Validation Expression property.