I have the following asp button:
<asp:Button ID="btnOk" runat="server" AutoPostBack="true" CausesValidation="true" ClientIDMode="Static" Text="Ok" Width="80px" OnClick="btnOk_Click" OnClientClick="btnOk_OnClick();return true;" class="dxbButton_Glass dxbButtonHover_Glass"></asp:Button>
And the following script:
function btnOk_OnClick() {
$("#btnOk").prop("disabled", true);
}
The event on the server:
protected void btnOk_Click(object sender, EventArgs e)
{
new Processar();
((Button)sender).Enabled = true;
}
The idea here is that the button is disabled, since the processing takes, but when I disable the button in the java script, the button click does not post, so the btnOk_Click event does not execute.
Do you have a solution? Thank you.