C H A P T E R  12

Working with Routes

In our examples to this point, there has been a direct correlation between the name we give a page and the URL that is used to access it. For example, if we create a new web page called MyPage.aspx in the root directory of our Visual Studio ASP.NET project, then the URL that we would use to access it on our development machine would be something like this:

http://localhost:1234/MyPage.aspx

If we move the web page into a directory called Pages, then the URL becomes as follows:

http://localhost:1234/Pages/MyPage.aspx

Similarly, when we deploy our web application to our production server (deployment is the topic of Chapter 14), the URL will still be directly related to the location of the page file in ...

Get Applied ASP.NET 4 in Context 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.