Routing in Asp.Net MVC with example
Routing in Asp.Net MVC with example Routing is defined in the RegisterRoutes method inside the RouteConfig class. this RouteConfig class resides in App_Start Folder. public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Account", action = "Index", id = UrlParameter.Optional } ); } Routing is a pattern matching system . when any user request from the browser at runtime Routing engine use routing table for matching user request URL pattern against the URL a pattern that is defined in the Route table. You can register one or more URL patterns in the route table but name is require diffe