命名空间与Context.Handler和Server.Transfer吗?
时间:2020-03-05 18:46:30 来源:igfitidea点击:
哪个.NET命名空间或者类同时包含Context.Handler和Server.Transfer?
我认为其中可能包括两者,而我在MSDN上的搜索返回null。
解决方案
回答
System.Web.DLL中的System.Web.HttpServerUtility.Transfer
需要有关Context.Handler的更多信息。
回答
System.Web。
HttpContext.Current.Handler HttpContext.Current.Request.Server.Transfer
回答
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是HttpContext的实例。
HttpContext在HttpContext.Current属性下公开请求的CURRENT实例,但是当前上下文也可以在ProcessRequest方法的HTTPHandlers中传递:
void ProcessRequest(HttpContext context)