Default Start page in MVC Application

Hello

I have seen many developer looking for How to set default page in MVC application.

In MVC Application you do not set start page by clicking on web page.  
From RouteConfig.cs file you can do it.
See below screen shot.


Now suppose you want to saw this StartPage action when application is default loaded.


Please note here you have to keep empty URL so it will take default page and route default page to  StartPage action of ketan controller.

Posted in Labels: |

0 comments:

Post a Comment