what is url mapping explain with example.

what is url mapping explain with example.

shashi kant
Views: 8449 | Community Opinion: 3

Tags..  ASP.NET

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 

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.

The URL mapping feature in ASP.NET 2.0 is very simple and works by specifying the mapping directly in Web.config. You can read the tutorial at

http://aspnet.4guysfromrolla.com/articles/011007-1.aspx




Chandresh Kumar Said..

This is good for increase knowledge .........
This is good for increase knowledge .........
This is good for increase knowledge .........
This is good for increase knowledge .........
This is good for increase knowledge .........
This is good for increase knowledge .........




My India Result Said..

Hello Sir,

Here would like to share my view that this post is very helpful as well as tutorial. And one more my question is that it support only asp.net 2.0 and other too.........................................................................................................................






What do you think? Add your opinion/answer
*Name
*your opinion/answer: