G
Guest
Thanks for taking the time to read this note
Can anyone explain what went wrong and any ideas how to fix it
I have a search page With three buttons few drop downs and a textbox. The search Button is the default button (because it is the first control in the HTML
When anything is entered into the text box the button is highlighted automatically. Hitting the enter key the event handler for this button btnSearch_click is executed. This worked fine for a few times and then something changed. Now it does not work
Here's what happens. When the button is highlighted by default (when a textpox gets focus and anything is entered)
hitting enter key nothing happens. I set break points and it does execute page load event so it posts the form back but does not execute the event btnSearch_click
When button is set to focus by tabbing to it (highlited by a dashed box) and hit the enter key, the event btnsearch_click executes
When the button is clicked with the mouse the event btnSearch_click executes
Can anyone explain what went wrong and any ideas how to fix it
I have a search page With three buttons few drop downs and a textbox. The search Button is the default button (because it is the first control in the HTML
When anything is entered into the text box the button is highlighted automatically. Hitting the enter key the event handler for this button btnSearch_click is executed. This worked fine for a few times and then something changed. Now it does not work
Here's what happens. When the button is highlighted by default (when a textpox gets focus and anything is entered)
hitting enter key nothing happens. I set break points and it does execute page load event so it posts the form back but does not execute the event btnSearch_click
When button is set to focus by tabbing to it (highlited by a dashed box) and hit the enter key, the event btnsearch_click executes
When the button is clicked with the mouse the event btnSearch_click executes