Application_Start

Where the Routing rules are defined in an ASP.Net MVC Application?

Where the routing rules are defined in an ASP.Net MVC Application?
In Application_Start event in Global.asax

The example looks like,
public class MvcApplication : System.Web.HttpApplication
{
    protected void Application_Start()
    {
        GlobalConfiguration.Configure(WebApiConfig.Register);
        FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
        RouteConfig.RegisterRoutes(RouteTable.Routes);
        BundleConfig.RegisterBundles(BundleTable.Bundles);
    }
}

ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

Where the Routing rules are defined in an ASP.Net MVC Application? Where the Routing rules are defined in an ASP.Net MVC Application? Reviewed by Anil Singh on 3:05 AM Rating: (5)
www.code-sample.com/. Powered by Blogger.
^