By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,683 Members | 1,597 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,683 IT Pros & Developers. It's quick & easy.

HttpContext.Current.Application

P: n/a
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
Jun 7 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jun 7, 11:19 am, "simonZ" <simon.zu...@studio-moderna.comwrote:
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

Jun 7 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.