更新时间:2023-02-25 19:36:08
您需要将POST BACK数据封装在FORM中。
You need to encapsulate the POST BACK data in a FORM.
@using (Html.BeginForm()) {
<p>
<!-- Fields to post back go here -->
<input type="submit" value="Delete" /> |
</p>
}
更多信息:
* FormExtensions.BeginForm方法(HtmlHelper)(System.Web.Mvc.Html) [ ^ ]
* ASP。 NET MVC 4助手,表单和验证| Microsoft Docs [ ^ ]
* asp.net mvc - @ Html.BeginForm()如何工作? - 堆栈溢出 [ ^ ]
More info here:
* FormExtensions.BeginForm Method (HtmlHelper) (System.Web.Mvc.Html)[^]
* ASP.NET MVC 4 Helpers, Forms and Validation | Microsoft Docs[^]
* asp.net mvc - How does @Html.BeginForm() works? - Stack Overflow[^]
>