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?
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?