multiple buttons on a form
This seems like a silly question, but I am wondering if anyone knows how to
default which button will be clicked when a user hits return on a form with
multiple buttons. The first button on the form is the one whose event is
automatically fired. I don't want that to happen.
In the .net framework library, I found information about creating the asp:buttons
as either a command or a submit button. I then created the first button
as a command, and the second as a submit, hoping to fire the second button
when the user of my form presses return. No such luck. I also tried setting
the "CausesValidation" of the first button to false, but still the first
button is the one clicked by default when the user presses return.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center