DefaultFocus Problem

CJLeit

Freshman
Joined
Feb 1, 2006
Messages
32
I am using Visual Studio 2005 and I'm having a problem getting the DefaultFocus property of a form to work. I made a very simple page to test and it still didn't set focus to my text box. Am I doing something wrong?

<body>
<form id="form1" runat="server" defaultfocus="TextBox1">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></div>
</form>
</body>

Thanks,
chuck
 
Well it turns out the focus works when I run it from my real web server but now when I'm running it in debug mode from Visual Studio. Is there something I need to set on the debug server visual studio uses to fix this.
 
Back
Top