CHAPTER 23

image

URL Routing

In this chapter, we introduce you to the URL routing feature, which 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. However, 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 of the techniques that most projects will need. We show you how to define, apply, expand, and constrain routes, and we finish the chapter by building a simple diagnostic tool ...

Get Pro ASP.NET 4.5 in C#, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.