CHAPTER 22

image

Managing Paths

In this chapter, we explain how the ASP.NET Framework uses paths to map between the URL that a request targets and the file that is used to generate the response. There are two kinds of paths—virtual and physical—and we explain the role of each and how they are correlated. We also show you some basic techniques for managing paths so you can take control of the URLs supported by your application.

Preparing the Example Project

For this project we created a new project called PathsAndURLs using the ASP.NET Empty Web Application template. We added a new Web Form called Default.aspx, the markup for which you can see in ...

Get Pro ASP.NET 4.5 in VB, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.