Sreeni Dony
Where is RouteTable stored in MVC?
By Sreeni Dony in .NET on Jul 22 2015
  • Sanjukta Pearl
    Aug, 2015 17

    RouteTable is a collection of routes that is stored in RouteConfig.cs file in App_Start folder of the application.

    • 3
  • Munesh Sharma
    Aug, 2015 5

    When a MVC application first starts, the application _start() method is called. This method in turn calls RegisterRoutes() method which creates Route table.

    • 2
  • Chander Saini
    Jul, 2019 7

    It’s “in memory”. That’s why you have to register it each time your app starts. RouteTable.Routes is a static reference to a RouteCollection.

    So you can just call RouteTable.Routes to access it.

    • 0
  • Kml Surani
    Dec, 2015 21

    When a MVC application first starts, the application _start() method is called. This method in turn calls RegisterRoutes() method which creates Route table.

    • 0
  • Arvind Nigam
    Dec, 2015 14

    It can be stored in RouteConfig.cs as well as in Global.asax file to define the route of the request URLs to call the particular controller.

    • 0
  • Sreekanth Reddy
    Nov, 2015 2

    RouteTable provides route for MVC application. public static void RegisterRoutes(RouteCollection routes) {routes.MapRoute("Default", // Route name"{controller}/{action}/{id}", // Route Patternnew { controller = "Home", action = "Index", id = UrlParameter.Optional } // Default values for above defined parameters); }protected void Application_Start() {RegisterRoutes(RouteTable.Routes);//To:DO }

    • 0
  • Sourabh Dwivedi
    Aug, 2015 19

    Route Table store on IIS

    • 0
  • Munesh Sharma
    Aug, 2015 5

    http://dotnet-munesh.blogspot.in/2015/05/create-first-aspnet-mvc-application.html

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS