Click to See Complete Forum and Search --> : Variable Confusion


atmosphere
05-30-2005, 11:07 AM
Hey.. this question deals with asp.net

If I want to store a variable only for the duration of a single postback that will be accessable from my entire application, where can I store it?

Also, what is the scope of shared variables. Do they persist across multiple sessions?

PeOfEo
05-31-2005, 12:44 AM
if you want something to be application wide you are just going to have to use an application wide variable, that will of course require a global.asax however it is going to last longer than one post back if done this way.