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
Post a Comment