title: Prevent duplicate postback in ASP.Net (C#)
body: <p>Simple one here... is there a clean way of preventing a user from double-clicking a button in a web form and thus causing duplicate events to fire?</p>
  
  <p>If I had a comment form for example and the user types in "this is my comment" and clicks submit, the comment is shown below... however if they double-click, triple-click or just go nuts on the keyboard they can cause multiple versions to be posted.</p>
  
  <p>Client-side I could quite easily disable the button onclick - but I prefer server-side solutions to things like this :)</p>
  
  <p>Is there a postback timeout per viewstate that can be set for example?</p>
  
  <p>Thanks</p>