HttpContext

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi misters,

if I have HttpContext, how I get Page reference ??

Which is the best way to get it ??

Thanks in advance.
 
Alhambra Eidos Kiquenet said:
Thanks mister.

Is it works for any case ?? If I have an .ashx ??

ashx is a "Raw" handler. The class in an ashx is not required to derive
from any base class it is only required to implement IHttpHandler. If
you've got a HttpContext and your not sure whether the handler is an ashx or
aspx or even something else then initially you can only realy on
IHttpHandler being implemented.

From there you may be able to use other code to discover other interfaces
being supported by the returned object.
 
Back
Top