I am thinking of having something like this:

 @if(Model.ShowSubmitButton)
 {
    <input id="submitButton" type="submit" value="Update stuff" />
 }
 else
 {
    <input id="continueButton" type="submit" value="Continue to next page" />
 }

Then in controller is it possible to know which button it is getting called from? I originally had my controller method working with the first button, now adding a second button with different functionality, wanted to see if using the same method I can determine which button was clicked ? and if it is not possible this way, then what do you suggest?

Related posts

Recent Viewed