Dictionary objects?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm somewhat new to .Net. I have a dictionary object that I've been putting
keys and values into. Is there a way to keep this around after a postback,
and if so, can someone point me to some code that does it.
 
Hi,

Store it in session state

To store it
Session("MyDictionary")=MyDictionary

To retrieve it
if not Session("MyDictionary") is nothing then
Mydictionary=session("MyDictionary")
else
' your code goes here
end if

Ken
 
Back
Top