|
-
Sep 11th, 2004, 01:23 AM
#1
Thread Starter
Frenzied Member
keydown event???[resolved]
hi to all...
sorry guys im very new in this thing
how could i catch the keydown event of the textbox??
it seems i dont see keydown event of a textbox in asp.net..
VB Code:
if e.keycode = keys.enter then
textbox2.focus()
end if
thanks in advance guys..
more power.
Last edited by mar_zim; Sep 18th, 2004 at 02:23 AM.
-
Sep 13th, 2004, 04:18 AM
#2
Addicted Member
Remember you are working with web app - what you are proposing would require a post back every time the user presses a key in that control.
I think you ought to use a bit of Javascript (or VBscript) to handle this client side.
-
Sep 14th, 2004, 04:18 AM
#3
Thread Starter
Frenzied Member
yah i tried it in javascript but no luck..
i posted a thread in this link about my script http://vbforums.com/showthread.php?s=&threadid=304868.
-
Sep 14th, 2004, 05:54 AM
#4
Hyperactive Member
sorrry even i found hard lucjk to this ..
-
Sep 14th, 2004, 06:24 AM
#5
I wonder how many charact
Acidic already answered your question in the other thread. Perhaps the problem is your 2nd textbox wasn't named Textbox2, so the javascript didn't work..
One thing you have to watch in javascript is case-sensitivity in your code.... for example, the method getElementById('TextBox2') would fail if you typed GetElementByID('textBox2').
-
Sep 18th, 2004, 02:21 AM
#6
Thread Starter
Frenzied Member
Re: sorrry even i found hard lucjk to this ..
Originally posted by PPCC
dd
huh?
-
Sep 18th, 2004, 02:22 AM
#7
Thread Starter
Frenzied Member
Originally posted by nemaroller
Acidic already answered your question in the other thread. Perhaps the problem is your 2nd textbox wasn't named Textbox2, so the javascript didn't work..
One thing you have to watch in javascript is case-sensitivity in your code.... for example, the method getElementById('TextBox2') would fail if you typed GetElementByID('textBox2').
ok i already solved it man...
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|