<p>What is the best way to implement mutliple Default Buttons on a ASP.NET Webform?</p>

<p>I have what I think is a pretty standard page. There is a login area with user/pass field and a login button. Then elsewhere on the same page there is a single search field with a search button.</p>

[{'answer_id': 72049, 'author': 'Mike Becatti', 'author_id': 6617, 'author_profile': 'https://Stackoverflow.com/users/6617', 'pm_score': 1, 'selected': False, 'text': "<p>Capture the enter key press for each area of the screen and then fire the corresponding button's click even.  </p>\n"}, {'answer_id': 72054, 'author': 'Ian Nelson', 'author_id': 2084, 'author_profile': 'https://Stackoverflow.com/users/2084', 'pm_score': 1, 'selected': False, 'text': '<p>Use a helper function like <a href="https://web.archive.org/web/20161202073205/http://geekswithblogs.net:80/jawad/archive/2005/05/15/TextBoxButtonTie.aspx" rel="nofollow noreferrer">this one</a> to tie the textboxes to their associated buttons.</p>\n'}, {'answer_id': 72095, 'author': 'jansokoly', 'author_id': 12111, 'author_profile': 'https://Stackoverflow.com/users/12111', 'pm_score': 4, 'selected': True, 'text': '<p><code>asp:Panel</code> has a property named <code>DefaultButton</code>. You just need to encapsulate your markup portions with appropriate panels and set the default buttons for each.</p>\n'}]
['https://Stackoverflow.com/questions/72036', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3747/']