I've just started working on MVC 3 and i want to create a url like 'http://server/news/9635/demo-news-title' but i don't know how can i map routes.
routes.MapRoute(
"news",
"{controller}/{id}/{title}",
new { controller = "news", action = "Index", id = UrlParameter.Optional, title = UrlParameter.Optional }
);
i tried this, but it doesn't seem to be working. What should i do?
Thanks