I am programming ASP.NET using C#.
I have been accessing static variables accross my entire application but now
need to change some of the static variables that are session specific to
instance variables.
(For more background, see previous post about 30 min ago)
It was so cool using static variables because they where global to the
entire application so I could calculate them when the page loaded and use
then anywhere in the app. Now I need to use instance variables so that there
will not be session conflicts but would still like to be able to access
those instance variables from anywhere. Is there a way of doing this?
Since my app always loads the same page and then loads user controls to
change pages, I can instance a class in the default.aspx page and set its
variables (properties or fields) for that page load. The question is how do
I make that instanced class and its members accessable to all other pages
within my application?
I suppose a session variable may be an option, but that seems less then
ideal...
Thanks for your help
Earl