Return fires button
This is kind of difficult to explain but here goes. My problem is this. I
have numerous textboxes and buttons in a form. On some of the textboxes I
event. For these textboxes I catch the return key. This all works fine in a
form with no buttons.
When I add buttons (like I do have on this form), when ever I click into a
textbox, the first button I put on the page, gets the the focus/default fire
block around it (The thin black box). If I press return while in the
textbox it fires the button. I realise that this is a default behaviour but
is there anyway I can change this? I do not want to always fire the button.
Only when in certain textboxes or if the button is clicked directly.
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