O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required