title: Disable button on form submission
body: <p>I have a button that I would like to disable when the form submits to prevent the user submitting multiple times.</p>
  
  <p>I have tried naively disabling the button with javascript onclick but then if a client side validation that fails the button remains disabled.</p>
  
  <p>How do I disable the button when the form successfully submits not just when the user clicks?</p>
  
  <p>This is an ASP.NET form so I would like to hook in nicely with the asp.net ajax page lifecycle if possible.</p>