B
Brad Isaacs
Good morning friends,
I am working with Visual Studio 2005, ASP.NET 2.0
I am working with the Login controls provided my .NET 2.0, trying to make
the Login1 control UserName textbox obtain SetFocus upon load of the .aspx
web page but I cannot for the life of me get this to work. I tried using
the defaultfocus on the Form but that did not work.
My code in my MasterPage is as follow::::
<form runat=server id="aspLoginForm">
<script language='JavaScript' type="text/javascript">
<!--
function SetFocus()
{
document.aspLoginForm['Login1_UserName'].focus();
}
window.onload = SetFocus;
// -->
</script>
<div>
<br />
<br />
<br />
</div>
<br />
<br />
<br />
<br />
<br />
<asp:Login ID="Login1" runat="server"
Any ideas would be greatly apprecited.
Thanks in advance,
~Brad
I am working with Visual Studio 2005, ASP.NET 2.0
I am working with the Login controls provided my .NET 2.0, trying to make
the Login1 control UserName textbox obtain SetFocus upon load of the .aspx
web page but I cannot for the life of me get this to work. I tried using
the defaultfocus on the Form but that did not work.
My code in my MasterPage is as follow::::
<form runat=server id="aspLoginForm">
<script language='JavaScript' type="text/javascript">
<!--
function SetFocus()
{
document.aspLoginForm['Login1_UserName'].focus();
}
window.onload = SetFocus;
// -->
</script>
<div>
<br />
<br />
<br />
</div>
<br />
<br />
<br />
<br />
<br />
<asp:Login ID="Login1" runat="server"
Any ideas would be greatly apprecited.
Thanks in advance,
~Brad