Objective 3.4: Design and implement routes
An ASP.NET MVC route is a definition of how a URL can be translated into an action on a method. Without the concept of a route, the entire concept of MVC breaks down. With Web Forms, IIS maps a request to a particular set of functionality because the request is to a page, a physical object residing on the file system of a web server. A route, or mapped URL, relates to a set of functionality wrapped in a single assembly file. Because you are simply calling a method on an assembly into the HTTP protocol, and because of the string-based nature of HTTP addresses, there needs to be some way to map between the string address and the method that will accept the request.
The route is the bridge between your users ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access