CHAPTER 23

image

URL Routing

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 ...

Get Pro ASP.NET 4.5 in VB, 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.