Q
quiggle
We have a need to ensure that users do not click multiple times on any
buttons that will submit the page. We have placed an onclick method on
all of them that counts how many times a submit like button has been
pressed, and if more than once, then there is an alert to the user, and
the subsequent submits are not processed.
Now here comes the interesting part...
We also have a few .NET validators on the page. If any of these
validators get tripped, and then the user tries to submit the page with
errors, and then corrects the problem, our handy dandy little onclick
will not let us continue because they have now pressed the button
twice. I was wondering if there is any way to tell from our
Javascript if the page is valid...
I attempted to call the Page_ClientValidate() method from our method,
and then check the Page_IsValid variable, which are in the
WebUIValidation.js file, but this didn't work.
Any help would be greatly appreciated!
Thanks!
buttons that will submit the page. We have placed an onclick method on
all of them that counts how many times a submit like button has been
pressed, and if more than once, then there is an alert to the user, and
the subsequent submits are not processed.
Now here comes the interesting part...
We also have a few .NET validators on the page. If any of these
validators get tripped, and then the user tries to submit the page with
errors, and then corrects the problem, our handy dandy little onclick
will not let us continue because they have now pressed the button
twice. I was wondering if there is any way to tell from our
Javascript if the page is valid...
I attempted to call the Page_ClientValidate() method from our method,
and then check the Page_IsValid variable, which are in the
WebUIValidation.js file, but this didn't work.
Any help would be greatly appreciated!
Thanks!