title: Best way to disable all submit buttons after postback
body: <p>I'm trying to write code that will disable submit button (or all submit buttons) on the page to avoid double postback.</p>
  
  <p>I thought of generating my own postback javascript function (and inject postback javascript using <code>GetPostbackEventReference</code>) but maybe there are some better ways to do this? Or maybe there is some other way to avoid double postbacks?</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>I also want to figure out the best place to call javascript, e.g. if I call following script in the onclick button handler then button's server click event won't be wired up.</p>
  
  <pre><code>$('input[type=submit]').attr('disabled', 'disabled')
  </code></pre>