Information générale
Titre:
Pressing enter on webform
Using VS.Net2005. I have created two webforms. Both webforms have 1 textbox and 1 command button. When the focus is in the textbox of webform1.aspx, and the enter key is pressed, the commandbutton Click() event is fired as expected.
However, in webform2.aspx, when the textbox has focus and the enter key is pressed, the webform refreshes but the commandbutton's Click() event is not called. The only way to call the commandbutton's Click() for webform2.aspx is to click the button with the mouse.
What did I do differently in these two webforms to make the enter key work in one webform but not the other?
Thanks,
Jerry
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement