I have a basic CRUD application in ASP.Net MVC 4. The Create view of the CRUD format has a form with “save” and “cancel” buttons. When I click on save button, the data are stored correctly in the database and the view refresh to the previous list records.
I want to make a “save and add” button where the user click on it and then the data will stored and load again the “create” view.
Sorry my bad english…
Thanks.
I have a basic CRUD application in ASP.Net MVC 4. The Create view of
Share
To mfanto’s point, if you wanted to be able to detect, as I believe you do, which button was clicked, just create both buttons with type=”submit” and both with the same name. However, give them both different values. Like:
Then in your controller, you’ll receive the button value in a parameter named the same as the button: