Hi,
I need to avoid double click submit button by user. So i am using javascript function.
the button was disabled and the text was changed. The problem is Server event not firing. the data cannot save. the page was not loading.
function DisableReSubmit() {
var flag = true;
if (Page_ClientValidate()) {
$('[id$=Button1]').attr("disabled", "disabled");
$('[id$=Button1]').val('Processing');
flag = true;
} else {
flag = false;
}
return flag;
}
<asp:Button ID="Button1" runat="server" Text="Save & Print" OnClick="Button1_Click" OnClientClick="return DisableReSubmit();" />
didn't fire Button1_Click event not firing.
...
Go to the complete details ...