M
Munsifali Rashid
Good to hear you're making the jump to C#
You need to cast your class back to the correct type, as it is boxed when
you store it into the session. To do this, change the last two lines of
code to read:
datafunct.sessioninfo mysession = (datafunct.sessioninfo)
Session.Contents["sessioninfo"];
ie. You don't need to create a new instance of the class first.
Hope this helps,
Mun
You need to cast your class back to the correct type, as it is boxed when
you store it into the session. To do this, change the last two lines of
code to read:
datafunct.sessioninfo mysession = (datafunct.sessioninfo)
Session.Contents["sessioninfo"];
ie. You don't need to create a new instance of the class first.
Hope this helps,
Mun