top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain how routing is done in MVC pattern?

0 votes
300 views
Explain how routing is done in MVC pattern?
posted Sep 27, 2016 by Latha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

There is a group of routes called the RouteCollection, which consists of registered routes in the application. The RegisterRoutes method records the routes in this collection. A route defines a URL pattern and a handler to use if the request matches the pattern. The first parameter to the MapRoute method is the name of the route. The second parameter will be the pattern to which the URL matches. The third parameter might be the default values for the placeholders if they are not determined.

answer Sep 27, 2016 by Shivaranjini
...