I'm using the asp.net Login control:
<asp:Login ID="Login2" runat="server" LoginButtonType="Link"
Width="280px" Height="150">
</asp:Login>
How could I set the Username textbox to have the focus when initially the page loads and also the Login link button should be clicked when the user enters.
I tried the below in the Page_Load event but didn't work?
this.Login2.FindControl("Username").Focus();
this.form1.DefaultButton = this.Login2.FindControl("LoginButton").UniqueID;
Thanks,