Where to define HttpContext.Current.Items["xxxx"];

K

Karl Seguin

Without have the actual portal installed, I'm pretty sure they do it in the
PortalModule look for IHttpModule or something and then the BeginRequest
function...if that's not it I'll install it and find it for you....

you could always simply search for "PortalSettings" (with the double
quotes) throughout the project...

Karl
 
A

ad

Thank,
I think I didn't express my question well.
I change my question in a new session.
Can you help me?
----------------------------------------------------------------
I find a line in a Web application like:
myString=(string)HttpContext.Current.Items["aString"];

I used to use
myString=(string)Application["aString"];
or
myString=(string)ViewState["aString"];

I know about the difference about Application state and ViewState.
But what is the HttpContext statae?

----------------------------------------------------------------------------
-------------------------


Karl Seguin said:
Without have the actual portal installed, I'm pretty sure they do it in the
PortalModule look for IHttpModule or something and then the BeginRequest
function...if that's not it I'll install it and find it for you....

you could always simply search for "PortalSettings" (with the double
quotes) throughout the project...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)


ad said:
When I study the Portal Starter Kit

(http://www.asp.net/Default.aspx?tabindex=8&tabid=47)

There is a line in DesktopPortalBanner.ascx.cs

PortalSettings portalSettings = (PortalSettings)
HttpContext.Current.Items["PortalSettings"];

Where to define HttpContext.Current.Items["xxxx"]?

I can't understand this line.

Could some one help me?
 
K

Karl Seguin

Or this one:
http://openmymind.net/index.aspx?documentId=6

;)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)


Scott Allen said:
Here is some info:
http://odetocode.com/Articles/111.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

Thank,
I think I didn't express my question well.
I change my question in a new session.
Can you help me?
----------------------------------------------------------------
I find a line in a Web application like:
myString=(string)HttpContext.Current.Items["aString"];

I used to use
myString=(string)Application["aString"];
or
myString=(string)ViewState["aString"];

I know about the difference about Application state and ViewState.
But what is the HttpContext statae?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top