How do you handle multiple submit buttons in ASP.NET MVC Framework?
Asked 07 September, 2021
Viewed 444 times
  • 56
Votes

Is there some easy way to handle multiple submit buttons from the same form? For example:

<% Html.BeginForm("MyAction", "MyController", FormMethod.Post); %>
<input type="submit" value="Send" />
<input type="submit" value="Cancel" />
<% Html.EndForm(); %>

Any idea how to do this in ASP.NET Framework Beta? All examples I've googled for have single buttons in them.

30 Answer