
Hi,
Yes, We can differentiate which button you have clicked by using button name.
Ex:
<input type="submit" name="action" value="SUBMIT"/>
<input type="submit" name="action" value="RESET"/>
Now, In your MVC POST method.
[HttpPost]
public ActionResult Index(string action)
{
}
Now, if you click on SUBMIT button, the string "action" value is SUBMIT,
and if you click on RESET button, the string "action" value is RESET.
you can differentiate like this.
Please mark as answer if this answer helps you.
Thank you,
Govind
Trjineesh, if this helps please login to Mark As Answer. | Alert Moderator