MVC3 Putting news article titles in links

fusioninternet used Ask the Experts™
Hi Experts,

I have a site with news articles and we want to be able to link to these news articles using the following format

Currently the news is served using this example address

What i thought would be the way to do this was to use global.asax.cs and add a maproute that processes the url to ignore the additional text and just use the normal controller action and id.

Unfortunately for me i've got no experience in routes or url re-writing and Im open to suggestions if there is a more efficient way of doing what i want to achieve.

A couple of other examples doing similar to what I want to do are below

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
               new { controller = "News", action = "Details", id="",title="" });

Open in new window

Put this Above the 'Default" route in the global.asax



Worked a treat, thanks very much.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial