Results 1 to 7 of 7

Thread: keydown event???[resolved]

  1. #1

    Thread Starter
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    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:
    1. if e.keycode =  keys.enter then
    2. textbox2.focus()
    3. end if

    thanks in advance guys..
    more power.
    Last edited by mar_zim; Sep 18th, 2004 at 02:23 AM.

  2. #2
    Addicted Member
    Join Date
    Dec 2002
    Posts
    175
    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.

  3. #3

    Thread Starter
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416
    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.

  4. #4
    Hyperactive Member
    Join Date
    May 2003
    Location
    india
    Posts
    273

    sorrry even i found hard lucjk to this ..

    dd

  5. #5
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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').

  6. #6

    Thread Starter
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: sorrry even i found hard lucjk to this ..

    Originally posted by PPCC
    dd
    huh?

  7. #7

    Thread Starter
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416
    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
  •  



Click Here to Expand Forum to Full Width