1
Reply

How we can multiple submit buttons in ASP.Net MVC?

Ritesh Singh

Ritesh Singh

8y
1.9k
0
Reply

    [HttpPost] public ActionResult ProcessForm(Customer obj,string save,string cancel) {if(!string.IsNullOrEmpty(save)){ViewBag.Message = "Customer saved successfully!";}if (!string.IsNullOrEmpty(cancel)){ViewBag.Message = "The operation was cancelled!";}return View("Result",obj); }