title: Preventing accidental double clicking on a button
body: <p>I have a few controls that inherit from <code>ASP.NET buttons</code> and use <code>onserverclick</code>.</p>
  
  <p>If the user clicks twice, the button fires two server side events. How can I prevent this?</p>
  
  <p>I tried setting <code>this.disabled='true'</code> after the click (in the <code>onclick</code> attribute) via javascript, but that blocks the first postback as well.</p>