Quote:
|
Originally Posted by xanoxate
With asp.net 2.0 you can enlcose the text box and button inside a panel and then set the DefaultButton property of the panel to the id of the button, when the user presses the enter key the button will be pressed
|
Ok, this is a very old post, but just wanted to point out that the post by xanoxate is the best one for me. Thanks, I never knew this, and always thought that farting about with Javascript and ClientIDs seemed overkill and something that ASP.NET should have provided out-of-the-box, given how common the scenario is!