The Compare Validator control allow you to compare two form elements as well as to compare values contained within form elements to a constant value that you specify.
One of the most common ways of using the CompareValidator control is to make a comparison between two form elements.
In our Example, We are comparing two text textboxes which needs password and retype password. We check whether a user is filling the same password in both the textboxes or not.
So in our form we have added 8 controls onto the Design View. Now we Drag and Drop Controls and change its properties.