PDA

Click to See Complete Forum and Search --> : sessionState?


Techno
Jun 24th, 2005, 02:55 PM
Hi again..

trying to figure out in ASP.NET...

IF i have a class (cs) and in that I create an arraylist and store objects/values, in the future I wish to retain those values in memory and have it be accessible anytime by any of the pages my ASP.NET website has.

however in order to access this class you have to create an instance of it but when you do that it create a NEW instance, there fore the object I wish to access will not be there

I was wondering, is there a way to "globally" create and access 1 arraylist from any page?

mendhak
Jun 25th, 2005, 01:49 AM
If you mean you'd like a set of values to be available throughout the life of the application, I'd suggest you use a database to store those values.

Techno
Jun 25th, 2005, 05:13 AM
I know that... but i do not wish for that to happen as its a bit expensive to do that, therefore i wish for it to be held in some session in memory...as the information is only very very small