title: Setting a class for a DIV that is a server control
body: <p>I different CSS styles, one of which is:</p>
  
  <pre><code>#layoutsectiondiv{
      border: 2px dashed #000000; 
     padding: 1px;
      left: 0px;
  }
  </code></pre>
  
  <p>I have a aspx page:</p>
  
  <pre><code>&lt;div id="testDiv" runat="server"&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>If it was regular HTML, I would set the style of a div by doing a </p>
  
  <pre><code>&lt;div id="layoutsectiondiv"&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>At runtime (in code behind), I need to dynamically assign different styles to the DIV. How would I do it?</p>