@using (Html.BeginForm()) { //other fields here..... }On your controller that the form posts to:
[HttpPost] public ActionResult Profile(Model model,string submitButton) { Member member = new Member(); switch (submitButton) { case "Save1": //do something; break; case "Save2": //do something; break; } return View(model); }
No comments:
Post a Comment