12
shouts

How to handle non-English characters in ASP.NET MVC routes

published 318 days, 6 hours, 25 minutes ago posted by http://mahdi.mp/http://mahdi.mp/ 318 days, 12 hours, 36 minutes ago
Wednesday, April 29, 2009 4:18:34 PM GMT Wednesday, April 29, 2009 10:07:46 AM GMT

April 29, 2009@ 02:31 PMComments [0]How to handle non-English characters in ASP.NET MVC routes One of the most amazing features of ASP.NET MVC is its powerful routing engine that let you define clear URLs for your web application. Today I want to share a very simple and short tip with you to handle non-English URLs in your ActionLink methods. Let’s start with an example; in a blog engine we have two routes as follows:routes.MapRoute("ShowPost","read/{url}",new { controller = "Post", action = "Show" } ...

category: ASP.NET | clicked: 2 | | source: sharplife.net | show counter code
tags: ASP.NET MVC, ASPNETMVC, MVC