I have 3 text boxes current password,new password and confirm password and 3 RequiredFieldValidator for each text-box and one comparevalidator for new and confirm password.
I also use CustomValidator because i want to check whether the current password is correct.so i created one javascript function that check current password.
Step:
1.if current password is not correct it display alert message that "current password is not correct" which is OK.
2.but it move forward and also display alert message "New Password and Confirm Password Fields must be identical." if both are not matched.
What i want is it should not move further it display message in step 1.
Anyone know how to do this?
Thanks
PS:
ERROR
You can disable the validator on your script like this:
var CmpValidator = document.getElementById('<%=CompareValidator1.ClientID%>');
ValidatorEnable(CmpValidator, false);
Later on client click of the submit button you can enable it like:
var CmpValidator = document.getElementById('<%=CompareValidator1.ClientID%>');
ValidatorEnable(CmpValidator, true);