public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Account", action = "LogOn", id = UrlParameter.Optional } // Parameter defaults
);
}
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterRoutes(RouteTable.Routes);
}
that is the code in global.asax file and it tells your default route to the application
as for your default it will be like your controller is Home and your action is Index
for mine when i just debug and start the application it will first call the Application_start method and then the next code of RegisterRoutes appears...
where you put maproute method and you navigate to the application