Globally use of Hash Table in Web Application
-
Hi All I need some values to insert and get in HashTable globally in my web application.I make a class an declare it public but when i get the value from hashtable in another page it shows no value.How I access a hash table globally in my application.Pls suggest. Thanks in Advance
Amit Gautam
-
Hi All I need some values to insert and get in HashTable globally in my web application.I make a class an declare it public but when i get the value from hashtable in another page it shows no value.How I access a hash table globally in my application.Pls suggest. Thanks in Advance
Amit Gautam
The web is stateless. You'll need to persist the populated HashTable between postbacks. Depending on your needs, be they per user or genuinely per web application instance. Look into using the Web Application Cache, the current Session, and the ViewState for the page.
Rhys "The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it" They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance." Terry Pratchett
-
Hi All I need some values to insert and get in HashTable globally in my web application.I make a class an declare it public but when i get the value from hashtable in another page it shows no value.How I access a hash table globally in my application.Pls suggest. Thanks in Advance
Amit Gautam