views:

950

answers:

4

What .NET namespace or class includes both Context.Handler and Server.Transfer?

I think one may include both and my hunt on MSDN returned null.

Thank you.

A: 

System.Web.HttpServerUtility.Transfer in System.Web.DLL

Need more info for Context.Handler.

Will
+2  A: 

System.Web.

HttpContext.Current.Handler
HttpContext.Current.Request.Server.Transfer
FlySwat
+1  A: 

Hmmmm, I talking about them as they are implemented here:

http://blog.benday.com/archive/2008/03/31/23176.aspx

(at least Context.Handler there)

I am still having trouble in VS making that reference.

Sara Chipps
A: 

Hmmmm, I talking about them as they are implemented here:

http://blog.benday.com/archive/2008/03/31/23176.aspx

(at least Context.Handler there)

I am still having trouble in VS making that reference.

Context.Handler is an instance of an HttpContext.

HttpContext exposes the CURRENT instance for the request under the HttpContext.Current property, however the current context can also be passed in HTTPHandlers in the ProcessRequest method:

void ProcessRequest(HttpContext context)
FlySwat