Partager via


ASP.NET 4.0: WebForms Routing

In this 20-minute video, you'll learn how to use ASP.NET 4.0 WebForms to provide bi-directional routing functionality; use the common route engine that allows you to customize the URLs that your application exposes; and learn how new expression builders allow you to generate dynamic URLs that are based on your route definitions, alleviating you from having to hard code static links.

See https://channel9.msdn.com/shows/10-4/10-4-Episode-11-Bi-Directional-Routing-with-ASPNET-WebForms-40/

Contents:

  • 01:00 Benefits: custom routings. No hard-coded URLs.
  • 04:10 Adding the URL routing module to the Web.config file.
  • 05:15 Coding against the System.Web.Routing.RouteTable class.
  • 08:25 Modifying navigation links in the Default.Master page to use the custom routing.
  • 09:30 New route URL expression builder in Web Forms 4.0.
  • 13:20 Coding against the Page class's RouteData property to work with the route's parameters.
  • 14:30 New route value expression builder in Web Forms 4.0.