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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2571 | Hits: 60

Similar Posts

  • jQuery Delete Link With Downlevel Support more
  • Upcoming Changes In Routing more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD