Url.Action() and RouteValue Encoding
Posted by: Rick Strahls WebLog,
on 20 Jul 2009 |
View original | Bookmarked: 0 time(s)
As Im working though my first MVC application Ive run into a few problems with creating URLs based on special characters. Heres a specific example, where I need to create links from a list of tags. In the example above a list like C#,ASP.NET,MVC is turned into a list of links that looks like this: The tags are stored as a simple comma delimited string and are split and turned into links using the UrlHelpers Action() method. The following is an extension method on my application specific UrlHelperExtensions...