Annulé

Url to replace space with Hyphen and other special chars in MVC-Razor

I am using ASP.NET MVC Razor C# with Attribute Routes

In my Category form when I click on Edit. it opens the Url like below:

http://localhost:38812/Category/Database%20Design

I am trying to change the Url like below

http://localhost:38812/Category/Database-Design

Here the problem is, when I go to database to search for the category based details..it does not search because there is no category with the name of Database-Design. It exist as Database Design with space.

Is there any way to not include the Id in Url and so we can also achieve the below Url? :

http://localhost:38812/Category/Database-Design

Same query has already been posted here: [url removed, login to view]

Please check the comments also.

Sorry the correct Url is : http://goo.gl/hPKynp

Compétences : .NET, ASP.NET, Programmation C#

Voir plus : razor programming, mvc programming, design special name, c with, mvc razor architecture, nhibernate mvc razor, mvc razor nhibernate, wordpress replace text url link, urlencoder encode replace space, htaccess space url, including space url rewriting rules htaccess, excell replace space, vbnet replace space

Concernant l'employeur :
( 143 commentaires ) SANGRUR, India

N° du projet : #8482112