title: ScriptManager.SetFocus not working
body: <p>I have quite a complex page that has some AJAX functionality.  The structure of the page consists of a <code>&lt;asp:ScriptManager&gt;</code> in the aspx page &amp; 3 user controls.  </p>
  
  <p>One of the user controls in the page links to another user control.</p>
  
  <p>The second level user control contains a number of <code>&lt;asp:UpdatePanel&gt;</code> controls.  Inside the update panel I'm using a <code>&lt;asp:RadioButtonList&gt;</code> control set to <code>AutoPostBack="True"</code> and in the <code>SelectedIndexChanged</code> event I'm using <code>ScriptManager.GetCurrent(Page).SetFocus(txtAddressLine1);</code> to try and set the focus to a text box when the radio button list has a particular selected value.</p>
  
  <p>The focus is currently not being set but when debugging the code to set the focus is being executed.</p>
  
  <p>I created a simple example page with this structure (aspx -> user control -> nested user control with UpdatePanel) and focus is being set correctly.</p>
  
  <p>Does anyone have any suggestions on what could be causing the focus not to be set?</p>
  
  <p>I'm using Windows 7 with IIS, Visual Studio 2010 Professional, .NET 4.0, C# and the web.config does not have anything set for the <code>&lt;xhtmlConformance&gt;</code> property.  </p>