How to Set Default Controller in asp.net MVC 4 & MVC 5 ?
As per my knowledge we can set two way first one is
i) Go to in your project root directory.
ii) Go to App_Start folder inside this RouteConfig.cs file open and set as like this
![]() |
| RouteConfig.cs |
And second one is
i) Go to in your project root directory.
ii) Go to project property window(Short cut key click on root directory and press "Alt +Enter")
a console window open.
iii) Click on Web tab and set as like this
![]() |
| Property console |


Comments
Post a Comment