This post is targeted to anyone who is a beginner in MVC and finds oneself fidgeting over difficulties encountered during its learning curve. While MVC is a very interesting architecture to work with, I personally felt it really tests one’s patience until you get a hang of it.
One of the common issues that most people face as a MVC novice developer is implementing multiple submit buttons in a form in MVC view. Recently, I had a similar scenario and thought it would a good idea to put it into an article for future reference.
The following three steps elaborate the solution to this problem.
1. We need to create a custom attribute that would match the action name with the name attribute of the button.