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
 
Back
Top