Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8857259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:32:50+00:00 2026-06-14T14:32:50+00:00

I have a basic CRUD application in ASP.Net MVC 4. The Create view of

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:32:52+00:00Added an answer on June 14, 2026 at 2:32 pm

    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:

    <input type="submit" name="whichButton" value="Save" />
    <input type="submit" name="whichButton" value="SaveAndAdd" />
    

    Then in your controller, you’ll receive the button value in a parameter named the same as the button:

    public ActionResult ActionName(Model model,string whichButton){
        switch(whichButton) {
            case "Save" : //do stuff and redirect to the list of records
            break;
            case "SaveAndAdd" : //do stuff and redirect to create
            break;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight application that implements some basic CRUD operations on a fairly
I have thrown together a small Lift application, using CRUDify, to perform basic CRUD
I have a problem where I have a fairly basic crud application website. I'm
I'm developing my first ASP.NET MVC application. This application tracks events, users, donors, etc.
I have developed a CakePHP application that does basic CRUD on a series of
I have a basic CRUD form that uses PageMethods to update the user details,
I have a basic CRUD web app where people can create articles/edit them. I
I have basic Spring MVC 3 setup for i18n where I can show labels
I have a basic nServicebus 3.2.0 setup with a web application endpoint and a
I have a basic web application written in Java, running on a tomcat on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.