The Artima Developer Community
Sponsored Link

.NET Buzz Forum
ASP.NET 2.0 Url Rewriting crippled to the point of uselessness

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Avery

Posts: 1206
Nickname: james615
Registered: Sep, 2003

James Avery is a .NET pimp
ASP.NET 2.0 Url Rewriting crippled to the point of uselessness Posted: Nov 6, 2005 7:07 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by James Avery.
Original Post: ASP.NET 2.0 Url Rewriting crippled to the point of uselessness
Feed Title: .Avery Blog
Feed URL: /blog/Install/BlogNotConfiguredError.aspx
Feed Description: .NET and everything nice
Latest .NET Buzz Posts
Latest .NET Buzz Posts by James Avery
Latest Posts From .Avery Blog

Advertisement

I am getting read to implement some url rewriting in my ASP.NET 2.0 project and at first I was excited that it was actually baked right into the framework in 2.0. Then I found out that the implementation was completely crippled and useless for 95% of real-world cases.

Here is an example UrlMappings config section for 2.0, notice what is missing?

 <urlMappings enabled="true">
      <add
          url="~/TodaysNews.aspx"
          mappedUrl="~/news.aspx?category=todays" />
      <add
          url="~/TechNews.aspx"
          mappedUrl="~/news.aspx?category=tech" />
</urlMappings>

Thats nice and all, but what happens when you have a dynamic ID like an order number… say you wanted this url: orders.aspx?ID=12 to map to something like Orders/12.asps. As far as I can tell it’s not possible. I can’t think of very many people would want to hard code all their URL mappings, it doesn’t even seem to make sense for simple scenarios like this.

Back to my favorite 1.1 solution I guess.

 

Read: ASP.NET 2.0 Url Rewriting crippled to the point of uselessness

Topic: Best blog title ever Previous Topic   Next Topic Topic: Subversion ebook/tutorial

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use