What is Route in MVC?

Posted by  Nishi Tiwari
 277  View(s)
Rate this:
  1. What is Route in MVC?

    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.