I am working on a MVC project that works fine when the submit button is clicked to access the Post method. I have a side menu that I would like to access the Post method and save the necessary changes before redirecting. How do I do that?
<fieldset>
<% Html.RenderPartial("SideMenu", Model); %>
</fieldset>
<fieldset>
//data with submit button
</fieldset>
[AcceptVerbs(HttpVerbs.Get)]
public ActionResult dataAccess()
{
//...
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult dataAccess()
{
//...
}
SideMenu.ascx ...
<%= Html.ActionLink("Witness", "Witness", "Loss")%>