I have an ASP.NET page with a jQuery dialog that appears to modify some data. I configure the jQuery dialog so that when the user clicks OK, he calls ASP.NET
Page_ClientValidate('validationGroup')through javascript, finds all invalid controls and modifies their CSS class. So, here is the scenario: the user opens a dialog, keys in some invalid data, clicks OK (receiving verification messages), and then clicks Cancel.
Now the dialog is closed, but the validation messages still exist, so when they open the dialog again, the data returns to its original state, but the form is still in an invalid state (validation messages are still displayed).
I need a "reset" function to call after the call Page_ClientValidate('validationGroup'). Does it exist?
source
share