G
Guest
Hi,
I have a search screen with a textbox and a button (server controls). The
page has to be submitted when the user hits the enter key in the textbox. The
code i am using to do this is..
this.txtCorpId.Attributes["onkeydown"] = "if(event.keyCode == 13){ if
(Page_ClientValidate()) document.getElementById('btnSearch').click();}";
But i find that the page_load event is executed twice when the enter key is
hit. The page works fine when submitted by clicking the button. Can anyone
help in solving this??
Thanks
Magesh
I have a search screen with a textbox and a button (server controls). The
page has to be submitted when the user hits the enter key in the textbox. The
code i am using to do this is..
this.txtCorpId.Attributes["onkeydown"] = "if(event.keyCode == 13){ if
(Page_ClientValidate()) document.getElementById('btnSearch').click();}";
But i find that the page_load event is executed twice when the enter key is
hit. The page works fine when submitted by clicking the button. Can anyone
help in solving this??
Thanks
Magesh