2 buttons but want enter key in textbox to execute one buttons' click event?

Discussion in 'ASP .Net' started by Roger, May 20, 2005.

  1. Roger

    Roger Guest

    I would like to have the click event of one of two buttons to happen when a
    person hits the enter key in a textbox on my aspx form.


    Is this possible, or do I need to only have one button on the form?


    thanks,

    Rog
     
    Roger, May 20, 2005
    #1
    1. Advertisements

  2. Roger

    GreggTB Guest

    GreggTB, May 20, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. PD
    Replies:
    5
    Views:
    14,835
    Hermit Dave
    Sep 2, 2004
  2. Jie
    Replies:
    7
    Views:
    6,746
    Xavier Pacheco
    Oct 9, 2004
  3. =?Utf-8?B?RGlmZmlkZW50?=

    button click event when keyboard's enter key is pressed

    =?Utf-8?B?RGlmZmlkZW50?=, Dec 20, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    6,052
    Steve C. Orr [MVP, MCSD]
    Dec 20, 2004
  4. =?Utf-8?B?Sm9l?=
    Replies:
    11
    Views:
    1,292
    =?Utf-8?B?Sm9l?=
    Oct 21, 2005
  5. Yuval Kordov

    How to get enter key to trigger button click event/postback

    Yuval Kordov, Jan 7, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    639
    Yuval Kordov
    Jan 7, 2004
  6. BrianDH

    Enter Key H*ll, control enter key submit button

    BrianDH, Jan 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    636
    Anders Matthiessen
    Jan 12, 2005
  7. M P
    Replies:
    1
    Views:
    828
  8. GOKU24
    Replies:
    0
    Views:
    253
    GOKU24
    Aug 26, 2003
Loading...