Handling the return key in a textbox

Discussion in 'ASP .Net Web Controls' started by Nigel Findlater, Sep 1, 2003.

  1. Hallo Everyone,

    I have an ASPX page with a textbox. If a user enters
    return I would like the form to be posted or a specific
    button to be activated.

    Any ideas?

    I was thinking about using the autopostback function but
    this would mean every keystroke in this textbox would
    cause a round trip to the server..


    Nigel...
    Nigel Findlater, Sep 1, 2003
    #1
    1. Advertising

  2. You can handle that in a javascript function and then
    submit the page
    >-----Original Message-----
    >Hallo Everyone,
    >
    >I have an ASPX page with a textbox. If a user enters
    >return I would like the form to be posted or a specific
    >button to be activated.
    >
    >Any ideas?
    >
    >I was thinking about using the autopostback function but
    >this would mean every keystroke in this textbox would
    >cause a round trip to the server..
    >
    >
    >Nigel...
    >
    >.
    >
    Martin Johnson, Sep 1, 2003
    #2
    1. Advertising

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. Imran Aziz
    Replies:
    2
    Views:
    11,460
    Imran Aziz
    Sep 5, 2005
  2. Bob Greschke

    Tkinter Return/Enter key handling

    Bob Greschke, May 19, 2005, in forum: Python
    Replies:
    2
    Views:
    1,830
    Bob Greschke
    May 19, 2005
  3. M P
    Replies:
    1
    Views:
    466
  4. PerlFAQ Server
    Replies:
    0
    Views:
    151
    PerlFAQ Server
    Jan 24, 2011
  5. PerlFAQ Server
    Replies:
    0
    Views:
    119
    PerlFAQ Server
    Feb 20, 2011
Loading...

Share This Page