Interviews1 answer
How we can multiple submit buttons in ASP.Net MVC?
1 Answer
[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);
}
prasoon yadavPosted Sep 15, 2020, 11:57 PM EDT
