title: TabIndex - hitting tab moves me to Address Bar - unable to work around this using Focus or +tab indexes
body: <p>I read several threads that talk about how the Address Bar in IE is basically the first one to get focus when using TAB (MSDN's own docs talk about this).</p>
  
  <p>Yet, I have seen situations where this doesn't always have to be the case....</p>
  
  <p>I have a master page and inside my content area is a formView.</p>
  
  <p>It defaults to INSERT view and can never leave it (they can only insert not edit and reading is handled elsewhere)</p>
  
  <p>So on my page load for the page I have:</p>
  
  <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
          If fvwLogEntry.CurrentMode = FormViewMode.Insert = True Then
              'Set the default field to position the cursor there...hopefully
              Dim FCtxtHrEmployeeId As TextBox
              FCtxtHrEmployeeId = CType(fvwLogEntry.FindControl("txtHrEmployeeId"), TextBox)
              Page.SetFocus(FCtxtHrEmployeeId.ClientID.ToString)
          End If
  </code></pre>
  
  <p>Now that works, when the page loads it sets the cursor to the employeeID text box inside the formview's INSERT template.</p>
  
  <p>HOWEVER, when I hit TAB it takes me to the address bar and THEN if I hit tab again it takes me through the rest of the items on the page.</p>
  
  <p>I set the tab index of the first item to 11 and then incrimented from there (I had read that IE's toolbars have tab indexes too so I thought perhaps using a higher number would bypass those, but again that doesn't REALLY make sense since it would still start at the lowest number, but I gave it a shot thinking it would move forward from where the focus was set.)  If I click on the textbox and then hit TAB it DOES move through the page like I would expect.</p>
  
  <p>It is just when the page loads and gets the focus set to the employeeID textbox that hitting tab moves it to the address bar.</p>
  
  <p>I also tried setting the other controls to -1 (those I didn't want it to tab to), still no luck there.</p>
  
  <p>So... what can I do to get around this?</p>
  
  <p>There MUST be a simple way to set the focus to the employeeID textbox and ensure that pressing TAB after that moves to the next control in the formview's insert template and does NOT jump up to the address bar?</p>