asp:imageButton and the enter key

Discussion in 'ASP .Net Web Controls' started by Skier Skier, Jan 9, 2004.

  1. Skier Skier

    Skier Skier Guest

    Hi:

    In a control file (.ascx; the code behind is written in vb.net), I'm
    using asp:imagebutton. Problem is that the user is forced to click the
    button to fire the event. I'd also like for them to be able to hit the
    enter key to register that the event has occurred. All browser issues
    aside, other than capturing the enter key click with javascript and then
    letting the code behind know that the enter key should be associated
    with the click event, is there a more elegant way of doing this in
    asp.net/vb.net? Or....Has anyone out there written there own version of
    the imagebutton control that gets around this issue?

    Thanks!
    sledDog


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Skier Skier, Jan 9, 2004
    #1
    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. Randy
    Replies:
    1
    Views:
    2,957
    Alessandro Zifiglio
    Jan 7, 2004
  2. =?Utf-8?B?am9l?=
    Replies:
    0
    Views:
    720
    =?Utf-8?B?am9l?=
    Sep 28, 2006
  3. BrianDH

    Enter Key H*ll, control enter key submit button

    BrianDH, Jan 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    362
    Anders Matthiessen
    Jan 12, 2005
  4. M P
    Replies:
    1
    Views:
    450
  5. HopfZ
    Replies:
    0
    Views:
    534
    HopfZ
    Aug 28, 2006
Loading...

Share This Page