Home All Groups Group Topic Archive Search About

How do access context in your class?

Author
7 Jan 2006 7:25 PM
GS
Hello,

I have a class defined in App_Code, how do I access current HTTP context
from that class without explicitely passing it?

G

Author
7 Jan 2006 7:56 PM
Karl Seguin [MVP]
HttpContext.Current

Karl

Show quoteHide quote
"GS" <n*@no.com> wrote in message
news:O1yqjA8EGHA.4084@TK2MSFTNGP10.phx.gbl...
> Hello,
>
> I have a class defined in App_Code, how do I access current HTTP context
> from that class without explicitely passing it?
>
> G
>
Are all your drivers up to date? click for free checkup

Author
7 Jan 2006 7:58 PM
Phillip Williams
http://msdn2.microsoft.com/en-us/library/system.web.httpcontext.current.aspx
Show quote Hide quote
"GS" wrote:

> Hello,
>
> I have a class defined in App_Code, how do I access current HTTP context
> from that class without explicitely passing it?
>
> G
>
>
>

Bookmark and Share