What is routing in mvc

Posted by Jitendrasoft09 under ASP.NET on 6/26/2013 | Points: 10 | Views : 511 | Status : [Member] [MVP] | Replies : 2
Hi All,
I want to understand What is routing in mvc, let me know if anybody knows.

Jitendra Kumar
If my post helps you, plz mark as an answer.



Responses

Posted by: Satyapriyanayak on: 6/26/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
www.dotnetcurry.com/ShowArticle.aspx?ID=814
http://www.codeproject.com/Tips/573454/Routing-in-MVC
http://www.codeproject.com/Articles/408227/Routing-in-MVC3


If this post helps you mark it as answer
Thanks

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 6/27/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
A route is a URL pattern that is mapped to a handler. The handler can be a physical file, such as an .aspx file in a Web Forms application. A handler can also be a class that processes the request, such as a controller in an MVC application. To define a route, you create an instance of the Route class by specifying the URL pattern, the handler, and optionally a name for the route.
You add the route to the application by adding the Route object to the static Routes property of the RouteTable class. The Routes property is a RouteCollection object that stores all the routes for the application.
You typically do not have to write code to add routes in an MVC application. Visual Studio project templates for MVC include preconfigured URL routes. These are defined in the MvcApplication class, which is defined in the Global.asax file.

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response