CJLeit Posted December 7, 2007 Posted December 7, 2007 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 Quote
CJLeit Posted December 7, 2007 Author Posted December 7, 2007 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.