Welcome to MSDN Blogs Sign in | Join | Help

SYSK 246: User-Friendly URLs

Did you know that .NET 2.0 and later versions support URL mapping?

 

Say you have a page with several tabs…  You can give virtual page name to each tab, but still have all the code implemented in one physical .aspx file.  Or, if you have a page that displays different views of some data, but most of the code-behind logic is same, again, you can use the URL mapping functionality to make it look like it’s different pages to the end user…  something that would be logical and easy to remember for them: 

 

<system.web>

      <urlMappings enabed=”true”>

            <add url=”~/LogicalPage.aspx”

 mappedUrl=”~/RealPage.aspx?YourParam=SomeValue” />

      </urlMappings>

</system.web>

 

 

Published Wednesday, November 22, 2006 7:27 AM by irenak
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: SYSK 246: User-Friendly URLs

Wednesday, November 22, 2006 12:51 PM by timheuer

also the urlrewriter.net and urlrewriting.net components are great enhancements to this model as asp.net is limited in doing some dynamic regular expression mapping, etc.

# ASP.NET : URL Mappings

Saturday, November 25, 2006 6:56 PM by CoqBlog

Je ne le connaissais pas ce truc là, que je viens de découvrir via Irena Kennedy : en .NET 2.0 on peut

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker