关于 Html.ActioinLink
1.
@Html.ActionLink("角色-新建", "AddEdit", "Power", null, null)
在一般情况下解析为:
http://localhost:10010/Power/AddEdit/
2.
当我点击页面其它的链接:
http://localhost:10010/Power/AddEdit/7
@Html.ActionLink("角色-新建", "AddEdit", "Power", null, null) 就解析为 http://localhost:10010/Power/AddEdit/7 是怎么回事?
实际上,我需要@Html.ActionLink("角色-新建", "AddEdit", "Power", null, null) 一直未为:
http://localhost:10010/Power/AddEdit/
------解决方案--------------------@Html.ActionLink("角色-新建", "AddEdit", "Power", new { }, new { })
这样呢