title: How to avoid double clicking on a submit button in .NET
body: <p>My c# web application has 2 panels. 1st panel is to enter some text.
  The 2nd panel only shows after the 1st panel passes validation and the continue button is clicked.
  The 2nd panel has a text box with 4 validations, a dropdown list box and a Submit button. 
  If the validation is good and the user clicks on he Submit button, I would like the Submit button to be disabled and change it's text to "Please wait..." to prevent the user from double clicking it.
  I'm new to .NET so any help is greatly appreciated.</p>
  
  <pre><code>protected void BTNSubmit_Click(object sender, EventArgs e)
  {
  if (Page.IsValid)
  {
  BTNSubmit.Text = "Please wait...";
  BTNSubmit.Enabled = false;
  
  DoSomething();
  }
  }
  </code></pre>