A Look at ASP.NET 2.0's URL Mapping


Server Intellect Web Hosting Solutions


A Look at ASP.NET 2.0's URL Mapping

Author: Scott Mitchell

URL mapping - a feature new to ASP.NET 2.0 - enables page developers to map one set of URLs to another. If a request comes in for one of the URLs in the first set, it is automatically re-mapped on the server-side. For example, you can configure the application so that the URL ~/Beverages.aspx is mapped to ~/ProductsByCategory.aspx?CategoryID=1&CategoryName=Beverages. With such a mapping in place, when a user enters http://YourSite.com/Beverages.aspx into their browser's Address bar, on the server-side the request will be handled as if they had entered http://YourSite.com/ProductsByCategory.aspx?CategoryID=1&CategoryName=Beverages. The user, however, will continue to see http://YourSite.com/Beverages.aspx in their browser's Address bar; they won't know that the request was re-mapped.










More Tutorials

Also See:

Extended GridView Control
ASP.NET AJAX: State or no State?
Understanding ASP.NET Provider Model - Part 1
Event Log RSS Feed Generator
HTTP Compression for web applications
Simplified and Extended Data Binding Syntax in ASP.NET 2.0
Changing the Password Complexity in ASP.NET V2.0
ASP.NET 2.0 Unhandled Exception Issues
Master Pages in ASP.Net 2.0 - An Advanced Look
Long Methods



Copyright© 2005 ASP Intellect | All Rights Reserved

ASP.NET Tutorials
AspNet Tutorials ASP.NET 2.0 Code Examples, Snippets and Tutorials

ASP.NET Tutorials C++ Tutorials C# Tutorials Visual Studio.NET Tutorials
.NET Framework Tutorials Mobility Tutorials Office Tutorials Visual Basic.NET Tutorials