I have a 4 submit buttons to do different action operation’s. For One Submit I have written like this
@using (Html.BeginForm("Edit", "Seller", FormMethod.Post)){
}
How can we do for multiple Submit buttons ? Do we need to write the same for every Submit button?
Here is how you do it for two submit buttons, similary you can do this for ‘n’ submit buttons.
Below is a form with two submit buttons. Note that both these submit buttons have the same name i.e “submitButton”
Now over to the Controller, the Action takes in an input parameter called string stringButton and the rest is pretty self-explanatory.