StopRoutingHandler Constructor ()

 

Initializes a new instance of the StopRoutingHandler class.

Namespace:   System.Web.Routing
Assembly:  System.Web (in System.Web.dll)

public StopRoutingHandler()

The following example shows how to prevent routing from handling requests for .axd files.

routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));

.NET Framework
Available since 3.5
Return to top
Show: