Click to See Complete Forum and Search --> : regarding Session


RockStone
February 9th, 2005, 03:29 PM
HI,
Hope every body is fine..

I have a problem...

I am loading different controls in a webform.They are enabled through hyperlinks. I have to use some objects when the controls are up...save the values from there and even reinsert the values when the controls gets the control again... Means when ever in a session one go to the control has been made ... there would not be any new instance of the control... that is the same control should be enabled again with stored values..... I can do it through sessions and control properties... I want to know whehter i can store OBJECTS in Session... or not.........If yes then how........and if not then what s the other way to do the same thing..

I think i would get the reply as soon as possible

Thanks a lot for you time
usman

Alsvha
February 11th, 2005, 04:32 AM
I'm not sure I'm reading this right, but yes, you can store objects in the Session variables by using:
Session("keyName") = object

This will store and object with the keyname in Session so you can pull it out later by
object = Session("keyname").

RockStone
February 11th, 2005, 01:29 PM
Thanx for replying
It did the trick

Right, My probelm was that i was trying to load different user controls to a signle webform and store the values they include in some user defined class objects. but was not able to maintain them through out the session.

You solved the problem...Thanks again