title: Choose CSS style using C# Code (ASP.net)
body: <p>I have two classes in my embedded CSS in my Default.aspx page. I can transfer the code to external CSS if needed.</p>
  
  <p>Can I make a code in C# where after clicking a button, I choose between the two styles for my table?
  I'm very new to ASP and C#.</p>
  
  <p>My classes (embedded):</p>
  
  <pre><code>   .tftable
      {
          background-color: Blue;
          font-size: 12px;
          color: #333333;
          margin: 0px;
          padding: 0px;
          width: 100%;
          border-width: 1px;
          border-color: #729ea5;
          border-collapse: collapse;
      }
  
      .CSSTable
      {
          background-color: Gray;
          margin: 0px;
          padding: 0px;
          width: 100%; /*Fits the &lt;div&gt;*/
          box-shadow: 10px 10px 5px #888888;
  
      }
  </code></pre>
  
  <p>So after clicking 1 button, my table class will choose "tftable" and another button will choose "CSS" table class.</p>
  
  <p>Regards</p>