在我的 MVC 视图中,我有 3 个选项卡。每个选项卡都有“保存”按钮。我可以使用 3 ajax.beginform 来保存每个选项卡吗?
例如:
<%using (@Ajax.BeginForm("SaveTab1", "Report", FormMethod.Post, new AjaxOptions { UpdateTargetId = "content", OnSuccess = "Redirect" }, new { id = "id1", enctype = "multipart/form-data" }))
{ %>
<%using (@Ajax.BeginForm("SaveTab2", "Report", FormMethod.Post, new AjaxOptions { UpdateTargetId = "content", OnSuccess = "Redirect" }, new { id = "id2", enctype = "multipart/form-data" }))
{ %>
<%using (@Ajax.BeginForm("SaveTab3", "Report", FormMethod.Post, new AjaxOptions { UpdateTargetId = "content", OnSuccess = "Redirect" }, new { id = "id3", enctype = "multipart/form-data" }))
{ %>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1804 次 |
| 最近记录: |