title: enable button in C# by removing 'disabled' property using firebug
body: <p>I have a question about disable button (C#) that I need your help.</p>
  
  <p>in Asp.net (C#), disable the button code:</p>
  
  <pre><code>    Button btn = new Button();
      btn.click += new EventHandler(btn_click);
      btn.Enabled = false;
      btn.UseSubmitBehavior = false;
  </code></pre>
  
  <p>The generated HTML:
          <b>&lt;input type="button" disabled="disabled"&gt; </b><br/></p>
  
  <p>The button is disabled until I use <b>firebug</b> and <b>remove the 'disabled' property</b> and <b>change the type property to submit</b> (<b>&lt;input type="submit"&gt;</b>) then user can click on btn and it can perform <b>btn_click</b> method(postback).</p>
  
  <p>How could we prevent this issue? I try to use CommandName (disable, enable) to mark disable button and inside btn_click method, I check if <b>CommandName== "disable"</b> then stop the function but it is very messy.</p>
  
  <p>Thanks for your help.<br/>
  Van</p>