Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HttpContext

Reply
Thread Tools

HttpContext

 
 
=?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=
Guest
Posts: n/a
 
      11-13-2007
Hi misters,

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

Which is the best way to get it ??

Thanks in advance.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      11-13-2007
"Alhambra Eidos Kiquenet" <(E-Mail Removed) >
wrote in message news:(E-Mail Removed)...
> Hi misters,
>
> if I have HttpContext, how I get Page reference ??
>
> Which is the best way to get it ??
>



(Page)ctx.Handler



--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=
Guest
Posts: n/a
 
      11-13-2007
"Anthony Jones" wrote:
> (Page)ctx.Handler


Thanks mister.

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

Greetings...
 
Reply With Quote
 
Anthony Jones
Guest
Posts: n/a
 
      11-13-2007


"Alhambra Eidos Kiquenet" <(E-Mail Removed) >
wrote in message news:(E-Mail Removed)...
> "Anthony Jones" wrote:
> > (Page)ctx.Handler

>
> 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.

--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dim context As HttpContext = HttpContext.Current Tony ASP .Net Web Controls 2 03-03-2004 04:51 PM
HttpContext.Current memememe ASP .Net 1 07-20-2003 06:27 AM
Unable to read httpcontext during session end Shawn ASP .Net 0 07-15-2003 04:50 PM
Questions on HttpContext w. jORDAN ASP .Net 1 07-01-2003 08:53 AM
HttpContext is Nothing in new Thread inside a control Claudio Biagioli ASP .Net 2 06-25-2003 03:57 PM



Advertisments