Mike Taulty's Blog
Bits and Bytes from Microsoft UK
Silverlight 3 – Navigation & Prettying my URI’s

Blogs

Mike Taulty's Blog

Elsewhere

Archives

Ian saw my post with a little Silverlight navigation application and dropped me a mail saying “couldn’t you make those URI’s a little more pretty with the UriMapper?” and he’s right :-)

Tim has an explanation of UriMapper up here so I just followed that and mapped a few things and so now I should be able to use URI’s like these;

http://www.mtaulty.com/downloads/SLMusic/music.html#artists

http://www.mtaulty.com/downloads/SLMusic/music.html#albums

http://www.mtaulty.com/downloads/SLMusic/music.html#albums?artist=Bob%20Dylan

http://www.mtaulty.com/downloads/SLMusic/music.html#songs

http://www.mtaulty.com/downloads/SLMusic/music.html#songs?artist=Bob%20Dylan

http://www.mtaulty.com/downloads/SLMusic/music.html#songs?album=Blood%20On%20The%20Tracks

not sure if I can do anything to pretty them up more than that but removing the need for the URI to contain “/Pages/{XYZ}.xaml” is definitely an improvement both from the point of view of convenience and of maintenance.


Posted Sat, Apr 11 2009 2:48 AM by mtaulty
Filed under: ,

Comments

Dew Drop - Weekend Edition - April 11-12, 2009 | Alvin Ashcraft's Morning Dew wrote Dew Drop - Weekend Edition - April 11-12, 2009 | Alvin Ashcraft's Morning Dew
on Sat, Apr 11 2009 7:44 PM