HttpContext

G

Guest

Hi misters,

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

Which is the best way to get it ??

Thanks in advance.
 
A

Anthony Jones

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.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top