Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does ASP.NET routing work internally?

Tags:

c#

asp.net

iis-7

OK I have seen many tutorials on how to use URL routing. However, I'd like to know how it is implemented internally by Microsoft.

like image 768
user310291 Avatar asked Apr 25 '11 11:04

user310291


People also ask

How does ASP net routing work?

In a general sense, Routing means showing a way. ASP.NET MVC Routing does the same thing; it shows the way to a request. Basically, routing is used for handling HTTP requests and searching matching action methods, and then executing the same. It constructs outgoing URLs that correspond to controller actions.

How is routing done in ASP.NET MVC?

Basically, Routing is a pattern matching system that monitor the incoming request and figure out what to do with that request. At runtime, Routing engine use the Route table for matching the incoming request's URL pattern against the URL patterns defined in the Route table.

What are the 3 important segments for routing?

The three segments of a default route contain the Controller, Action and Id.

What is routing and how can you define routes in ASP.NET Core?

In ASP.NET Core MVC, this process is known as routing. Routing is the process of directing an HTTP request to a controller. Let us now understand how to route requests to different controllers. The ASP.NET Core middleware needs a way to determine if a given HTTP request should go to a controller for processing or not.


1 Answers

Check out the following links

How ASP.NET MVC Routing Works and its Impact on the Performance of Static Requests

like image 173
santosh singh Avatar answered Sep 27 '22 20:09

santosh singh