使用Controller属性显式指定控制器名称。
示例代码:
@using (Html.BeginForm("ActionName", "ControllerName", FormMethod.Post)) { // ... }
改为:
@using (Html.BeginForm("ActionName", null, new { Controller = "ControllerName" }, FormMethod.Post)) { // ... }
上一篇:BeginformjQuery提交函数无法正常工作
下一篇:beginForm中正确使用aria-label