The “Save Changes” button on a Modal is firing the Html.BeginForm() Submit Action Method…
I only want the dedicated “Save Button” which is at the end of the Form to fire it. I want the Save Changes button to call a different action method and save an image which the user has uploaded.
Any idea how I can do this and stop the Save Changes in firing the same action as the Submit button?
You can explicitly mention which action method should be executed when the form gets posted, by using the appropriate overload of BeginForm helper method.
The below sample will post the form to an action method called
UploadMake sure you have the HttpPost
Uploadaction method in your (home) controller.