System.Web.HttpContext.RemapHandler C# (CSharp) Method

RemapHandler() public method

public RemapHandler ( IHttpHandler handler ) : void
handler IHttpHandler
return void
		public void RemapHandler (IHttpHandler handler)
		{
			if (MapRequestHandlerDone)
				throw new InvalidOperationException ("The RemapHandler method was called after the MapRequestHandler event occurred.");
			Handler = handler;
		}
		

Usage Example

Beispiel #1
0
 void Pipeline_PostAuthorizeRequestStart(System.Web.IHttpModule sender, System.Web.HttpContext context)
 {
     if (HandlesRequest(context, c))
     {
         //Communicate to the MVC plugin this request should not be affected by the UrlRoutingModule.
         context.Items[c.Pipeline.StopRoutingKey] = true;
         //Provide the request handler
         context.RemapHandler(new EndpointPluginPageHandler(ProcessRequest));
     }
 }
All Usage Examples Of System.Web.HttpContext::RemapHandler