I have a password textbox and confirm password textbox in which I use a comparevalidator to make sure that they are equal. If they aren't, I want the user to receive an error message that says they don't match. However, I don't want this to display until the user clicks a button. What is currently happening is that when I tab from the first textbox to the second, I immediately receive that error.
How can I prevent this error from showing up until after I click a button?