Hi,
Why is it that ASP.NET panels and text boxes submit twice on enter, while dropdown lists don't?
I have a panel with contols mentioned above and a javascript attached to the panel, designed to execute an imagebutton event when a user presses 'Enter'.
If a user presses enter while the focus is on the dropdown list, Page_Load event is executed, and then the imgButton_Click event. If the focus is on a text box or on the panel, then the Page_Load event is executed AGAIN after the imgButton_Click event is done.
How can I stop the second Page_Load event from executing?
Thanks,
Ks.
Why is it that ASP.NET panels and text boxes submit twice on enter, while dropdown lists don't?
I have a panel with contols mentioned above and a javascript attached to the panel, designed to execute an imagebutton event when a user presses 'Enter'.
If a user presses enter while the focus is on the dropdown list, Page_Load event is executed, and then the imgButton_Click event. If the focus is on a text box or on the panel, then the Page_Load event is executed AGAIN after the imgButton_Click event is done.
How can I stop the second Page_Load event from executing?
Thanks,
Ks.