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.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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.