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