Saturday, 24 August 2013

stackoverflow.com/questions/13063268 like routing in asp.net mvc

stackoverflow.com/questions/13063268 like routing in asp.net mvc

I am stil new to ASP.NET MVC routing, I want to achieve stack-overflow
like routing.
For example
http://stackoverflow.com/questions/13063268/are-there-any-responsive-templates-for-asp-net-mvc-3-4/
and
http://stackoverflow.com/questions/13063268/
both redirect to a same action and view. I want to be able to do something
like that I am trying this
routes.MapRoute(
name: "Notes",
url: "Notes/{id}/{ignore}",
defaults: new { controller = "Notes", action = "View", id =
UrlParameter.Optional, ignore = "" }
);
But this does not work. Please help.

No comments:

Post a Comment