ASP.NET textbox - user presses enter

Mondeo

Centurion
Joined
Nov 10, 2006
Messages
128
Location
Sunny Lancashire
I have a textbox on a form, next to it is an imagebutton which just says "GO!", user presses the imagebutton and triggers the click event

Is there any way I can also run the code in this click event if the user simply presses enter in the textbox, at the moment a postback occurs when this happens but it doesn't do anything, can I wire that postback somehow to the imagebutton click?
 
Back
Top