Access to the current Request object inside other classes

  • Thread starter Thread starter neverstill
  • Start date Start date
N

neverstill

Hi-

I have a class that helps me save some data. In this class I need access to
Request.ApplicationPath

Do I need to inherit Page to get access to this? Is there some tricky
technique to get to the current Request object easier?

Weird question I know, but I don't really have my head around it all yet.
Thanks for any help,
Steve
 
Perfect! Thank You.
I had resorted to passing in the HttpRequest to the constructor... what you
suggested is MUCH better.

Have a good one!
 
Back
Top