title: How to get the div display property in c#.net before i changed div property in javascript
body: <p>i Have one div in my default web page . The div style display none, that time in page load event i have to get the status none, but the div status changed in javascript function based on dropdown selection that i dosenot get the none status always show "" status, my code is</p>
  
  <p>aspx page</p>
  
  <pre><code> &lt;div id="Div1" runat="server" clientidmode="Static" style="display: none;"&gt;
  </code></pre>
  
  <p>pageload event</p>
  
  <pre><code>     string Display1 = "";
      Display1 = Div1.Style["display"]; (working fine)( get the display1 value=none)
  </code></pre>
  
  <p>when i button click show the div like that in c# code</p>
  
  <pre><code>    Div1.Style.Add("display", "");(now show the div it is correct)
  </code></pre>
  
  <p>Dropdown Changed fire  javascript function code</p>
  
  <pre><code>    document.getElementById('Div1').style.display = 'none'; (after change dropdown Hide the div after pageload i got Display1 value="")
  </code></pre>
  
  <p>After changed javascript function i doenot get the none status in page load </p>