Pages

Wednesday, November 21, 2007

URL mapping - a new feature to ASP.NET 2.0

URL mapping 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.
URL mapping is often used to provide "friendly" URLs, which are URLs that are more readable and sensical.URL mapping also is useful when restructuring a site.
The URL mapping feature in ASP.NET 2.0 is very simple and works by specifying the mapping directly in Web.config.To specify the mappings, simply add a element to Web.config. Set the enabled attribute to true and then include an element for each mapping. In the element, specify the incoming URL to look for and the URL to map it to using the url and mappedUrl attributes, respectively.

For more info,check out
http://aspnet.4guysfromrolla.com/articles/011007-1.aspx

No comments: