Friday, January 17, 2014

MVC application - setting up the start page.


To define a start up page of your choice to be loaded in MVC (version 4), follow the steps below.

Navigate to App_Start folder and then click open RouteConfig.cs file





Make sure, your RegisterRoutes method updated as below.
In the above code snippet, default controller is directed to HomeController and action is the page defined to be the default one, in this case it is Index.cshtml.

  Accordingly you can change it to any controller / view

No comments:

Post a Comment