0

In the ASP.net, in the form like Password Reset, when we compare the new password and confirm password, if both are not matched we can display the Error Message like,

ErrorMessage="*Password not matched" 

by using the Error Message property, the same way is it possible to display the Success Message like "Password Matched" after losing focus from the New password TextBox, in the UI part itself.

1
  • 1
    It may be possible but then you will be using a Validator for the wrong purpose. I would suggest to implement this with alternative methods. Commented Apr 16, 2012 at 12:17

1 Answer 1

1

The error message usually appears when the validation fails. Therefore, it stops the form from submitting. I would avoid changing this behavior, instead give feedback with a label, a popup, etc...

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.