Enter the key and a few submit buttons in .net

if I have several submit buttons, and the user enters some text in the text box and presses the enter key. How can I indicate which button event I want to trigger?

+5
source share
1 answer

You can specify the button identifier for the asp.net panel in the property DefaultButton. So, you need to group the controls in the panel, and then you can specify the default button for any of them. In addition, you can specify the default button for the entire page - in the form tag.

+11
source

All Articles