How to detect which submit button was clicked in asp.net (mvc)
问题 I've read plenty of answers that use the value of submit type input, but my collection of input buttons need to all have the same text. Others use Javascript, and I'm trying to avoid that as well. <input type="submit" value="Press This" name="submitButton" /> Doesn't work because they all need to be named 'Press This'. <button type="submit" value="12" name="submitButton">Press This</button> Doesn't work because it doesn't post the value. Is there some way to make the <button> submit it's