Skip to Content
Introducing .NET 4.0: with Visual Studio 2010
book

Introducing .NET 4.0: with Visual Studio 2010

by Alex Mackey
February 2010
Beginner content levelBeginner
400 pages
11h 13m
English
Apress
Content preview from Introducing .NET 4.0: with Visual Studio 2010

10.10. URL Routing

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET 3.5 For Dummies®

ASP.NET 3.5 For Dummies®

Ken Cox
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9781430224556Purchase book