CustomValidator control is used to validate input fields from client side and the server side both.


Following for the first input field i am using client side validation using javascript, and for the second one i am validating through server side.
Password (Client side)
Password (Server side)

View Source Code