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.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL