WorkAround:
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
Problem:
- After getting page refresh and even
Postback
, I am getting latest values of that variable. A variable declared asSTATIC
, not getting reset by Page refresh andPostback
? - 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.
Could you please help on this.