Search⌘ K
AI Features

Routing

Explore how routing directs HTTP requests to controller actions in ASP.NET Core MVC. Understand how URLs map to controllers and methods, and how parameters like IDs are handled to display dynamic content.

What is routing?

Routing is the ability to access different pages within a single domain name. It matches incoming HTTP requests and redirects to the application’s executable endpoints. Endpoints are parts of your code that handle requests and give an appropriate response.

How is it achieved?

Applications can achieve routing by using a handful different of ways. But in this lesson, you will be focusing on controller routing. The name of the controller determines a route. For example, if ...