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