ASP.NET

W06 ASP.NET MVC - Rudiments of Routing

10/08/2014

11:00am - 12:15pm

Level: Introductory to Intermediate

Walt Ritscher

Walt Ritscher

Staff Author

Lynda.com at LinkedIn

The session covers the fundamentals of routing, touching on custom routes, useful URL constraints and proper route error handling.

The MVC routing engine is a core part of any ASP.NET MVC application. Get the MVC routing right, and your site will be a pleasure to use, simple to bookmark and rank high in search engine results. But getting it wrong can lead to subtle bugs. The session covers the fundamentals of routing, touching on custom routes, useful URL constraints and proper route error handling. You'll learn how to write Unit tests for routes, mock the framework with MOQ and how to debug problems in the route tables with Glimpse. You also see how to use the route data in your controllers. Finally, you'll examine the new Attribute routing features, which provide the mean to set route per Action method.

You will learn:
  • Discover how to configure routes to your best advantage
  • Learn the best strategies to unit test your route
  • Explore server side route debugging with Glimpse
  • Examine the Attribute routing changes