accessing the Application object from another project

W

William Gower

I have split my webapp into multiple projects. I need to access the
Application object from another project how do I do that?

ex. EmployeeDALC is in project DALC and the Global.asax is in the solution.
 
N

Natty Gur

Hi,

If your assembly will be run from aspnet_wp process you can use
HttpContext.Current to access application, session, request, response
...


HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
J

John Saunders

Natty Gur said:
Hi,

If your assembly will be run from aspnet_wp process you can use
HttpContext.Current to access application, session, request, response

Yes, but this won't work unless the code in his assembly is being called as
part of a a request.
 

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

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top