asp.net - VS2012 C# Application cannot save value? -


the same code,application's key can saved in vs2010 after closing page,but cannot save in vs2012

 protected void page_load(object sender, eventargs e) {     object value = application["a"]; // value = 'abc' in 2010,value = null in 2012     application["a"] = "abc"; //save value } 

if closing page , , restart ,application's key exists in vs2010,but had nothing in vs2012,it seems no matter how many values set in application,if restart page, it's gone.. why ? can me ?


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -