Mondeo Posted January 4, 2007 Posted January 4, 2007 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? Quote
tfowler Posted January 5, 2007 Posted January 5, 2007 You'll likely have to use JavaScript to do this. Something along the lines of what is described in this link: http://jennifermadden.com/javascript/stringEnterKeyDetector.html Todd Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.