在我的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" }))
{ %>