Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...