HttpContext

G

Guest

Hello All,

I have review the IBuySpy portal application and notice that it uses the
HttpContext to store information about the config,security, etc

So here is the question, when I try to store items in the
(HttpContext.Current.Items.Add()), and try to reference them from another
page I get a null ref exception?

Any helpful hints?

Thanks,

ConfusedAboutTheContext
 
M

Matt Berther

Hello HttpContext,

HttpContext.Current adds items only for that request. If you need to span
requests, you might try HttpContext.Cache or HttpContext.Session.
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top