title: How to get the document height using C#?
body: <p>I am using ASP.NET and C#.I can able to get the document height using javascript with this.</p>
  
  <pre><code>var h = document.documentElement.offsetHeight;
  </code></pre>
  
  <p>Now i need this value during pageload. But the javascript will be start exicuting after pageload. So now i need to get it using server side code(C#).</p>
  
  <p>Is it possible?</p>
  
  <p>EDIT:</p>
  
  <p>In pageload i am planning to set the height for all the tags based on the document height.
  So that the page will fit for all resolution.</p>