我有以下途径定义:如何摆脱ASP.NET MVC路线中的问号?
{theme}/{subtheme}/{contenttype}/{contentdetail}/Print
当我使用
Url.Action ("PrintLayout","Page",new {contentUrlTitle = Model.ContentUrlTitle}
我得到以下链接:
/theme1/subtheme1/contenttype1/myfirstcontenturltitle?action=PrintLayout
我想为它是一个RESTful URL 。
/theme1/subtheme1/contenttype1/myfirstcontenturltitle/Print
你知道我在这里错过了什么吗?
你可以添加整个Routes.MapRoute代码的代码吗? – 2011-03-08 10:59:42