The route is a URL pattern that is mapped to a handler. A handler can be a physical file, such as an .aspx file in a Web Forms application and can also be a class that processes the request, such as a controller in an MVC application so to define a route, we create an instance of the route class by specifying the URL pattern, the handler, and optionally a name for the route.
Liked By
Write Answer
What is Route in MVC?
Join MindStick Community
You have need login or register for voting of answers or question.
Nishi Tiwari
11-Feb-2020The route is a URL pattern that is mapped to a handler. A handler can be a physical file, such as an .aspx file in a Web Forms application and can also be a class that processes the request, such as a controller in an MVC application so to define a route, we create an instance of the route class by specifying the URL pattern, the handler, and optionally a name for the route.