B
Bruno Alexandre
Hi guys,
I have a session called for example Portal, like session("Portal")
and I want to retrieve that value inside a Class... how can I perfor such
task?
I thought it would like:
Public Class Warranty
Dim myPortalClass As Portal = HttpContext.Current.Session("Portal")
but everytime I get here, I get an error saying
System.NullReferenceException: Object reference not set to an instance of an
object.
but it's worng cause I have values in that session that I'm retriving
correctly, the only problem is the use of the session variable inside the
Class...
How can I do this?
I have a session called for example Portal, like session("Portal")
and I want to retrieve that value inside a Class... how can I perfor such
task?
I thought it would like:
Public Class Warranty
Dim myPortalClass As Portal = HttpContext.Current.Session("Portal")
but everytime I get here, I get an error saying
System.NullReferenceException: Object reference not set to an instance of an
object.
but it's worng cause I have values in that session that I'm retriving
correctly, the only problem is the use of the session variable inside the
Class...
How can I do this?