Compartilhar via


ASP.NET Routing Content Map

ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs that are more easily understood by users.

The MVC framework uses routing to link URL patterns to controllers instead of to Web pages. Because of the special way in which the MVC framework uses routing, some topics apply only to Web Forms applications and some apply only to MVC applications.

ASP.NET Routing for Web Forms Applications

The following table shows scenarios for learning to use ASP.NET routing for Web Forms applications. Each scenario links to topics that provide the information for that scenario.

Scenario

Topics

Getting started with ASP.NET routing

ASP.NET Routing

Walkthrough: Using ASP.NET Routing in a Web Forms Application

.NET Framework 4 Migration Issues

Setting up routes for an application

How to: Define Routes for Web Forms Applications

Using an application's route URL patterns to generate URLs

How to: Construct URLs from Routes

Accessing variable data passed to routed pages in URL parameters

How to: Access URL Parameters in a Routed Page

ASP.NET Routing for MVC Applications

The following table shows scenarios for learning for using ASP.NET routing in MVC applications. Each scenario links to topics that provide the information for that scenario. For more information about other topics related to the MVC framework, see ASP.NET MVC 2.

Scenario

Topics

Understanding ASP.NET routing and how it is used by the MVC framework

ASP.NET Routing

.NET Framework 4 Migration Issues

Understanding default routes and how to add custom routes

ASP.NET Routing

Using route URL patterns defined for an application to generate URLs

How to: Construct URLs from Routes

Accessing variable data passed in URL parameters

Passing Data in an ASP.NET MVC Application