February 2010
Beginner
400 pages
11h 13m
English
Routing was first introduced in ASP.NET in .NET 3.5 SP1 and further enhanced in ASP.NET MVC (see Chapter 13). Routing allows you to map a URL to a physical file, which may or may not exist. To implement this functionality in previous versions of ASP.NET, complex hacks or ISAPI filters were needed.
Why use this feature? Well, let's say you are working for an online shop that has a new product being advertised on TV; it is located at the following URL:
www.myshop.com/productDetail.aspx?id=34534
Routing allows you to create a more readable URI mapped through to the page, such as the following:
www.myshop.com/PopularProduct/
URL routing also allows you to create more memorable and search engine–friendly URIs, hiding the internal ...