Html.BeginForm 问题
@using (Html.BeginForm("ActionName", "ControllerName", new { id = 1}, FormMethod.Post, new { @class="login-form" }))
这样写不会报错
@using (Html.BeginForm(new { id = 1}))
这样写也不会报错
@using (Html.BeginForm(new { id = 1}, FormMethod.Post, new { @class="login-form" }))
这样写就会报错
可以不写ActionName和ControllerName 只写参数和class吗?