asp:imageButton and the enter key

S

Skier Skier

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top