Master Pages, buttons, Login Control, and the default button
When the master page loads in the Login page, the default button is set to the search button. This is not good when a user wants to press "Enter" on the username/password textbox.
I tried to do this:
<asp:Panel ID="pnlLogin" runat="server" DefaultButton="LoginButton">
<asp:Login ID="lgnSecurity" OnAuthenticate="lgnSecurity_Authenticate" runat="server"
/>
</asp:Panel>
lgnSecurity.Focus();
((HtmlForm)Master.FindControl("MainForm")).DefaultButton = ((Button)lgnSecurity.FindControl("LoginButton")).UniqueID;