【发布时间】:2015-02-25 09:57:04
【问题描述】:
我创建了一个名为 Consultants 的新控制器。然后我创建动作方法 Index()..
我给路线如下,
routes.MapRouteLowercase(
"consultants",
"consultants/index",
new { controller = "Consultants", action = "Index" }
);
在看来,ActionLink方法是,
<%: Html.ActionLink("Consultant Home", "Index", "Consultants", null, new { title = "Back home" })%>
但它不是路由。它显示Resource cannot be find
请纠正我的问题...
【问题讨论】:
标签: asp.net-mvc asp.net-mvc-2 routing