I have the following asp.net textbox control.
After the user writes something in this
My 2c.. I have used javascript, but found it did things that were not quite expected.
USE the panel's defaultButton attribute/property as many of the above posts suggest. It is reliable (EASY) and works in all the browsers I have tested it on.