469,625 Members | 1,086 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

onkeypress and .Net

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
3 1496
@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
> >

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

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

Adam
Jul 20 '05 #3
@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.

Similar topics

5 posts views Thread by Fred Brown | last post: by
5 posts views Thread by Albert Wagner | last post: by
7 posts views Thread by Kev | last post: by
2 posts views Thread by Hasan Ammar | last post: by
11 posts views Thread by LilAndy23 | last post: by
2 posts views Thread by ~toki | last post: by
1 post views Thread by Simon Wigzell | last post: by
3 posts views Thread by Robert Inder | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.