Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Storing the values of a dictionary object into a session variable

Status
Not open for further replies.

gooseriver

IS-IT--Management
Aug 4, 2006
93
CA
I have a dictionary object and would like to store the following items into a session variable :

dicParams.Add "FName", objElm.nodeTypedValue
dicParams.Add "LName", objElm.nodeTypedValue
dicParams.Add "@City", objElm.nodeTypedValue

How can I do this?
 
Session("MyDict") = dicParams


But be careful... putting objects in session variables is memory intensive.... especially if your server has a lot of traffic or the session timeout period has been extended.
 
Thats simple... Quick question. I have a list of keys in which I want to store in a string comma seperated..

Ie: Keys in which you need the values:
LName, @City

The result would be this:
var3 = "Smith,Chicago"

How can I do this
 
To assign a dictionary object to session, "set" keyword is still needed. So a revision.
[tt] set Session("MyDict") = dicParams[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top