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

onkeypress and .Net

P: n/a
Hello,
I have big form with textbox, label, radiobutton..
When user finish set case of search and press "enter" i have to run command
in my codebehind "RunSearch()".
I know, and I try simulate click on my search button, but this is not
working :(

btn = getElementById("ButtonSearch");
btn.click();

or

Form.submit();

Maybe you know how i can do this?

Thx for help

Adam


Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
@SM


Adam Kozlowski a *crit :
Hello,
I have big form with textbox, label, radiobutton..
When user finish set case of search and press "enter" i have to run command
in my codebehind "RunSearch()".
I know, and I try simulate click on my search button, but this is not
working :(
document.getElementById("ButtonSearch").click();


btn = getElementById("ButtonSearch");
btn.click();

or

Form.submit();

Maybe you know how i can do this?

Thx for help

Adam


--
************************************************** ************
Stéphane MORIAUX : mailto:st*********************@wanadoo.fr
Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)
http://perso.wanadoo.fr/stephane.moriaux/internet/
************************************************** ************
Jul 20 '05 #2

P: n/a
> >

btn = getElementById("ButtonSearch");
btn.click(); or Form.submit();

I was write it, this method does't work :(

Adam
Jul 20 '05 #3

P: n/a
@SM
Adam Kozlowski a ecrit :
btn = getElementById("ButtonSearch");
btn.click();

I was write it, this method does't work :(


Usualy it would do !
It's the best way to simply submit a form by distance

So ... is thern't anytthing wrong in your code ?
so much things can happen typing characters ;-))
--
************************************************** ************
Stéphane MORIAUX : mailto:st*********************@wanadoo.fr
Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)
http://perso.wanadoo.fr/stephane.moriaux/internet/
************************************************** ************
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.