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.
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.
System.Web.
HttpContext.Current.Handler
HttpContext.Current.Request.Server.Transfer
嗯,我在谈论它们,因为它们在这里实现:
http://blog.benday.com/archive/2008/03/31/23176.aspx
(至少 Context.Handler 那里)
我仍然无法在 VS 中进行引用。
Context.Handler 是 HttpContext 的一个实例。
HttpContext 在 HttpContext.Current 属性下公开请求的 CURRENT 实例,但是当前上下文也可以在 ProcessRequest 方法中的 HTTPHandlers 中传递:
void ProcessRequest(HttpContext context)