Solved

System.Web.HttpContext.Current.Session  Question

Posted on 2014-10-23
2
126 Views
Last Modified: 2014-10-24
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?
0
Comment
Question by:codequest
2 Comments
 
LVL 19

Accepted Solution

by:
Albert Van Halen earned 500 total points
ID: 40401913
Use
Dim SC As System.Web.SessionState.HttpSessionState = System.Web.HttpContext.Current.Session

Open in new window

0
 
LVL 2

Author Closing Comment

by:codequest
ID: 40402624
Yep.  Thanks.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now