HttpContext.Current.Application

  • Thread starter Thread starter simonZ
  • Start date Start date
S

simonZ

I have class(object) and i create an instance from my page.
In that object i must set and recive values from
HttpContext.Current.Application object.

Can I access application object from my class?

HttpContext.Current is always null, when I create new object from my page.

regards,Simon
 
I have class(object) and i create an instance from my page.
In that object i must set and recive values from
HttpContext.Current.Application object.

Can I access application object from my class?

HttpContext.Current is always null, when I create new object from my page.

regards,Simon

Can you post some "just enough" sample code to enable somebody to
replicate your issue? You should definitely be able to access
HttpContext.Current.Application from your class, as long as the
assembly has a reference to System.Web.
Peter
 

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

Back
Top