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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top