I have a form with multiple tabs. Each tab has its own <form>
, defined like this:
<% Using Html.BeginForm("Save", "FirstSection")%>
I've got a master Save button that submits all the forms on the page like this:
$("form").each(function() { $(this).submit(); });
The problem is that I don't know what each Save action should return:
<AcceptVerbs(HttpVerbs.Post)> _
Function Save(ByVal data As MyTable) As ActionResult
SaveTheDataHere()
Return View()
End Function
If I use Return View()
it's going to fail because I don't have a "get" equivalent for the Save action. What I really want the post to do is nothing - just save the data and be done.
Is there a better return value to use?