Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   page_load is executed twice when using validation controls (http://www.velocityreviews.com/forums/t85493-page_load-is-executed-twice-when-using-validation-controls.html)

=?Utf-8?B?TWFnZXNo?= 08-25-2004 11:39 AM

page_load is executed twice when using validation controls
 
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




All times are GMT. The time now is 12:57 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.