title: Css & Asp:Button conflict
body: <p>I am working on a webpage and at  some point I need to disable a asp:button.</p>
  
  <p>This page uses a css file that has the following class:</p>
  
  <pre><code>.pagerLinkDisabled
  {
      display: none;
  }
  </code></pre>
  
  <p>So every time I set a button to disabled .net renders it with <code>class="pagerLinkDisabled"</code> and the button is not displayed...</p>
  
  <p>At pageload I tried this:</p>
  
  <pre><code>myButton.Enabled=false;
  myButton.Style.Add("display","static");
  </code></pre>
  
  <p>How can I work around this problem without changing the css file?</p>
  
  <p>Thanks :)</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>To clarify:</p>
  
  <ul>
  <li><p>The button is being rendered but when enabled is set to false the framework is adding class="pagerLinkDisabled" to the input tag. </p></li>
  <li><p>This class is defined at a css file that I cannot change. </p></li>
  </ul>
  
  <p><strong>Edit2:</strong></p>
  
  <p>My button is defined as such: </p>
  
  <pre><code>&lt;asp:Button runat="server" ID="myButton" Text="mytext" Enabled="false" /&gt;
  </code></pre>
  
  <p>The html that is being rendered is:</p>
  
  <pre><code>&lt;input type="submit" name="ctl00$ContentPlaceHolder$ctl00$myButton" value="mytext" id="ctl00_ContentPlaceHolder_ctl00_myButton" class="pagerLinkDisabled" /&gt;
  </code></pre>