My Requirement is this. Steps:-
- On Client Click (button)
- Disabled the Button.
- Then it should prompt for OK or CANCEL.
- If OK then fire the OnClick event (Code Behind).
- If CANCEL then don't make a server-side trip and enable the button.
Following is the code I am using for the button.
<asp:Button ID="btn1" OnClientClick="this.disabled=true;return Confirm();" Text="Testing" runat="server" />
But instead of what I am expecting, it is disabling button and prompting Confirmation but if User hits Cancel then button stays as disabled.