Here Mudassar Ahmed Khan has explained with an example, how to use multiple Submit buttons in Single Form in ASP.Net MVC Razor.
One Form can do a POST submission to one Action method in Controller and hence in order to use multiple Submit buttons inside one single Form, a Switch case has to be implemented inside the Action method.
The Switch case detects the clicked Submit button by fetching its Value from the Request.Form collection and the appropriate action is performed.
↧