Disable submit button after click but fire validators?

C

Chris Ashley

I have an ImageButton which I would like to have the following
behaviour:

(1) User clicks button, button is disabled.

(2) Page validators fire

(3) If page fails client side validation, reenable button. Otherwise
submit.

I have tried the following code but it is not working:

JS:

function btnSave() {
document.all["next"].Disabled = true;
Page_ClientValidate();
document.all["next"].Disabled = !Page_BlockSubmit;
}

..NET:

next.Attributes.Add("onclick","btnSave()");

Anybody have any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top