Saturday 5 April 2014

MVC5 - How to change startup page

 Watch this example on YouTube


In solution explorer under App_Start folder open RouteConfig file
modify the following code
defaults: new { controller = "Start", action = "StartWithMe", id = UrlParameter.Optional }
replace "Start" with the name of the View folder
replace StartWithMe with the name of the method in selected controller

No comments:

Post a Comment