title: Asp.net Static Variable Life time Across Refresh and PostBack
body: <p>WorkAround:</p>
  
  <p>I have declared a class level Public static variable and initialized with a value 0 in the environment of ASP.NET 3.5
  In load event I  Incremented by 1 of that variable</p>
  
  <p>Problem:</p>
  
  <ol>
  <li>After getting page refresh and even <code>Postback</code>, I am getting latest values of that  variable.
  A variable declared as <code>STATIC</code> , not getting reset by Page refresh and <code>Postback</code>?</li>
  <li>I just close the browser and close the VS 2008 IDE - even though while i am reopen, rerun the same web application, I am getting last incremented value, Not 0.
  I am wondering how this is possible after i close application.</li>
  </ol>
  
  <p>Could you please help on this.</p>