Forum Thread: How Routing Works in Mvc?

Routing -
Is used to simplify MVC URLs. Mapping User-friendly URLs to action names in the controller.
Default be the last statement bcoz else it bypasses the other urls from the route which you defined.
It is a collection and has unique names or key in the collection.

How to start page in MVC- in MVC there is no start page bcoz the first hit always comes to the controller. For that, you have to set start controller and start the action and in routing, you have to set nothing means it serves as the start page.

Ignoreroute - it not allows a user to download config or axd files.

Our Best Phone Hacks

Gadget Hacks' tips — delivered daily.

Be the First to Respond

Share Your Thoughts