Rudiments of ASP.NET Routing

Watch the first few minutes on us! If you'd like to watch the entire video and hundreds more like it, download code samples, access offline videos and skills assessments, and use the discussion forums, log in or purchase a subscription.


Instructor

Walt Ritscher

Description

Routing is a core service available to any ASP.NET application. With routing, you can decouple site URLs from the physical locations of ASPX files. For MVC developers, routing is essential for mapping URLs to MVC controller action methods. This video covers the fundamentals of routing, touching on custom routes, generating route base URLs, and crafting useful URL constraints. You'll also see how the routing engine parses URLs into parameters and how to access that information in your code.

Table of Contents

00:00:00 How HTTP Requests and ASP.NET Interact
00:03:17 Why Routing is Smart for Modern ASP.NET Projects
00:10:14 Example URL Routes (Demo)
00:12:07 Registering Routes
00:15:51 Registering Routes at Application Startup (Demo)
00:18:01 Understanding UrlRoutingModule
00:23:25 Understanding URL Pattern Matching
00:27:56 Pattern Matching and Placeholders (Demo)
00:40:53 Understanding Route Data
00:42:27 Route Data (Demo)
00:46:32 Default Data for Route Parameters (Demo)
00:51:21 Creating CatchAll Parameters (Demo)
00:55:13 Using DataTokens (Demo)
00:57:11 Route Constraints
00:59:16 Adding Constraints to Route Parameters (Demo)
01:01:45 Outgoing Routes
01:04:18 Outgoing Routes (Demo)
01:13:30 Conclusion

Related Links

  • Routing Code Samples (requires a paid subscription)

Series

This course is part of the following series: