System.Web.HttpContext.Current.Session Question

When I use this (to create a shorthand reference to session variables):

Dim SC = System.Web.HttpContext.Current.Session

I get a warning that there is no "as Type" clause.

What Type might I use?
LVL 2
codequestAsked:
Who is Participating?
 
Albert Van HalenConnect With a Mentor Analyst developerCommented:
Use
Dim SC As System.Web.SessionState.HttpSessionState = System.Web.HttpContext.Current.Session

Open in new window

0
 
codequestAuthor Commented:
Yep.  Thanks.
0
All Courses

From novice to tech pro — start learning today.