Use the HtmlForm control's DefaultButton property to set which button should be clicked when the user hits enter. This property is also available on the Panel control in cases where different buttons should be triggered as a user moves into different Panels on a page.
<form id="frm" DefaultButton="btnSubmit" runat="server">
...
</form>
Nice but how can you do this when using a masterpage?
Bjorn van der Neut 2/26/2008 2:10:19 PM
Read this tip - http://dotnettipoftheday.org/tips/locate_nested_control.aspx Enable ASP.NET tracing to see controls tree and how they are nested inside each other.
kostya.ly 3/9/2008 1:01:49 AM