In this chapter, we introduce you to the URL routing feature. This allows an application to support virtual paths that are not directly related to the files in the project. In Chapter 22, we showed you a range of techniques to control the virtual paths supported by an application, but the routing system offers a lot more flexibility—as long as you are willing to accept the complexity and testing demand that it comes with.
This chapter covers all the techniques that most projects will need. We show you how to define, apply, expand, and constrain routes and finish the chapter by building a simple diagnostic tool that helps ...