Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Pressing the enter key

Hi,
I have a (html) textbox and hyperlink connected to an image. I am trying to get the hyperlink to fire when the user selects the enter key from the textbox?

If I type in the text box and click the image the postback occurs and everything works fine. The querystring changes and I am taken to the proper results.

If I press the enter key a postback takes place, but the querystring is not updated and I am not taken to the proper place. I am returned back to the previous location before pressing enter.

Can someone point me to an article that discusses submitting a form when the user selects the enter key from the keyboard?

Thank in advance
[691 byte] By [croyal] at [2007-11-11 7:32:43]
# 1 Re: Pressing the enter key
http://weblogs.asp.net/jeff/archive/2005/07/26/420618.aspx
Phil Weber at 2007-11-11 23:13:43 >
# 2 Re: Pressing the enter key
Thanks Phil for getting back to me.
croyal at 2007-11-11 23:14:43 >