Home All Groups Group Topic Archive Search About
Author
26 Apr 2005 3:34 PM
TCORDON
Why does the click event of an image button that submitts a form does not
get fired when ENTER is pressend on a textbox of that form? How can I make
this happen?

Thanks

Author
26 Apr 2005 10:18 PM
Steve C. Orr [MVP, MCSD]
You can intercept the client side enter keypress event of the text box and
then do what you want using javascript code.

Here's a couple good articles on the subject:
http://www.allasp.net/enterkey.aspx
http://www.aspnetpro.com/features/2004/06/asp200406so_f/asp200406so_f.asp

You could also try using this free control.
http://www.metabuilders.com/tools/DefaultButtons.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


Show quoteHide quote
"TCORDON" <tcord***@hotmail.com> wrote in message
news:uJli4VnSFHA.2964@TK2MSFTNGP15.phx.gbl...
> Why does the click event of an image button that submitts a form does not
> get fired when ENTER is pressend on a textbox of that form? How can I make
> this happen?
>
> Thanks
>