By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,918 Members | 2,040 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,918 IT Pros & Developers. It's quick & easy.

page_load is executed twice when using validation controls

P: n/a
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
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.