【发布时间】:2014-04-04 03:40:30
【问题描述】:
我有一个如下的操作链接:
<td>@Html.ActionLink(item.InterfaceName, "Name", "Interface", new { name = item.InterfaceName}, null)</td>
item.InterfaceName 是从数据库中收集的,是FastEthernet0/0。这导致我的 HTML 链接被创建以指向"localhost:1842/Interface/Name/FastEthernet0/0"。有没有办法让"FastEthernet0/0" URL 友好,这样我的路由就不会混淆?
【问题讨论】:
标签: asp.net-mvc asp.net-mvc-4 actionlink