In a URL like http://mysite.com/controller/action/123/name-of-article
, is there a way to define the route so that the '123/name-of-article' part is passed in as a string?
You can make a wildcard route:
MapRoute("{controller}/{action}/{*id}")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With