【发布时间】:2014-01-30 12:01:48
【问题描述】:
我使用的是路由模式。最近,我改变了模式。现在,我正在努力解决一个让我烦恼的问题。
我想获取以下网址:
http://www.mysite.com/news_title/-1322.html
路由模式:
routes.MapRoute(
name: "haber2",
url: "{noFollow}-{id}.html",
defaults: new { controller = "Anasayfa", action = "HaberID" },
constraints: new {id = "\\d+"}
);
点击下面的链接时,我面临着找不到。如何克服这个问题?
非常感谢任何帮助和技巧。
【问题讨论】:
标签: c# asp.net asp.net-mvc