title: How do you modify a CSS style in the code behind file for divs in ASP.NET?
body: <p>I'm trying to modify a CSS style attribute for a div based on the information I get from a database table in the code behind of my aspx page. The following is essentially what I am trying to do, but I get errors.</p>
  
  <p>Aspx:</p>
  
  <pre><code>&lt;div id="testSpace" runat="server"&gt;
      Test
  &lt;/div&gt;
  </code></pre>
  
  <p>Code Behind:</p>
  
  <pre><code>testSpace.Style = "display:none;"    
  testSpace.Style("display") = "none";
  </code></pre>
  
  <p>What am I doing wrong?</p>