By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,414 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

is there any way to share a hash table between aspx sessions? can application variable do this or is there something else to use?

P: n/a
right now i have some sql server tables that i search for a value w/ a key
each time a .aspx is hit. is there any way i can just have the first hit to
the .aspx select all the entries from the key/value table in to some kind of
hash table so that subsequent hits to the .aspx get the data from the hash
table instead of the database? e.g. is there any way to share a hash table
between aspx sessions? can application variable do this or is there
something else to use?
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
For what your doing, It's probably easier to just keep it in the data tables
and then save those into Application variables. You can save the Hash tables
into Application variables the same way.

Just keep in mind, you don't want to put too much into the application
variables. Also, you'll need to check for the existance of the variables and
use them if they exists. The application variables will be reset for
multiple different reasons.

--
Fred Loud
MCP
"Daniel" wrote:
right now i have some sql server tables that i search for a value w/ a key
each time a .aspx is hit. is there any way i can just have the first hit to
the .aspx select all the entries from the key/value table in to some kind of
hash table so that subsequent hits to the .aspx get the data from the hash
table instead of the database? e.g. is there any way to share a hash table
between aspx sessions? can application variable do this or is there
something else to use?

Jul 21 '05 #2

P: n/a
You can put it into application variables, just like any other object. Why
would you ask this instead of running a simple test?

If you're going to use the application state as a global information cache
that lives for the life of the application, the best place to do it may be at
application startup. Then you never need to write logic to check if
something's been filled yet, etc.

"Daniel" wrote:
right now i have some sql server tables that i search for a value w/ a key
each time a .aspx is hit. is there any way i can just have the first hit to
the .aspx select all the entries from the key/value table in to some kind of
hash table so that subsequent hits to the .aspx get the data from the hash
table instead of the database? e.g. is there any way to share a hash table
between aspx sessions? can application variable do this or is there
something else to use?

Jul 21 '05 #3

P: n/a
why is Jeff Varszegi retarded? i dont know.. i guess you were born that way.
anyhow someone not so retarded already answered somewhere else

"Jeff Varszegi" <Je**********@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
You can put it into application variables, just like any other object. Why would you ask this instead of running a simple test?

If you're going to use the application state as a global information cache
that lives for the life of the application, the best place to do it may be at application startup. Then you never need to write logic to check if
something's been filled yet, etc.

"Daniel" wrote:
right now i have some sql server tables that i search for a value w/ a key each time a .aspx is hit. is there any way i can just have the first hit to the .aspx select all the entries from the key/value table in to some kind of hash table so that subsequent hits to the .aspx get the data from the hash table instead of the database? e.g. is there any way to share a hash table between aspx sessions? can application variable do this or is there
something else to use?

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.