title: How Access A Server-Side div In Code Behind (Inside Content Page)
body: <p>How to access a server-side div in code behind (inside content page)?<br />
  mean there is a div in content page like below:</p>
  <pre><code>&lt;div id=&quot;MyDiv&quot; runat=&quot;server&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>but the code below does not work:</p>
  <pre><code> MyDiv.Style.Add(&quot;display&quot;, &quot;none&quot;); 
  </code></pre>
  <p><strong>EDIT</strong><br />
  I am so sorry and that was my mistake!<br />
  The codes upper are correct and work perfect and there is no problem about them. My mistake was about my css and after fixing it every thing was ok.<br />
  so really thanks for attention and answers.</p>