Answer the question
In order to leave comments, you need to log in
[asp.net mvc] How to use routing outside the site?
Like having a static method like this:
public static void RegisterRoutes(RouteCollection routes)<br/>
{<br/>
routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });<br/>
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");<br/>
routes.IgnoreRoute("{resource}.css/{*pathInfo}");<br/>
routes.MapRoute("Root", "", new { controller = "home", action = "index" });<br/>
routes.MapRoute("myRoute1", "{controller}/{action}", new { controller = "home", action = "index" });<br/>
...<br/>
}<br/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question