Chapter 5. Routing

 

This chapter covers

  • Routing as a solution to URL issues
  • Designing a URL schema
  • Using routing in ASP.NET MVC
  • Route testing
  • Using routing in Web Forms applications

Routing is all about the URL and how we use it as an external input to the applications that we build. The URL has led a short but troubled life and the HTTP URL is currently being tragically misused by current web technologies. As the web began to change from being a collection of hyperlinked static documents into dynamically created pages and applications, the URL has been kidnapped by web technologies and undergone terrible changes. The URL is in trouble and as the web becomes more dynamic we, as software developers, can rescue it to bring back the simple, logical, readable, and beautiful resource locator that it was meant to be.

5.1. What are routes?

5.2. Designing a URL schema

5.3. Implementing routes in ASP.NET MVC

5.4. Using the routing system to generate URLs

5.5. Creating routes for Code Camp Server

5.6. Testing route behavior

5.7. Using routing with existing ASP.NET projects

5.8. Summary