title: ASP.NET UpdatePanel Breaks When ScriptManager is in Master Page
body: <p>I have a .NET 4.0 web application with a simplified structure that looks like:
  RootMaster (with ScriptManager) > ShipmentMaster > ContentPage > UpdatePanel</p>
  
  <p>The UpdatePanel was recently added to reduce page flickering via partial page updates.  It's not working.  Instead, full postbacks/updates are happening.</p>
  
  <p>I've set-up two scaled down versions of this with one (Ex1) mimicking the structure above, and one (Ex2) that looks like:
  ContentPage (with ScriptManager) > UpdatePanel</p>
  
  <p>It would seem that something about the Master/ScriptManager arrangement of the original (and Ex1) is breaking things, but I don't know what.</p>
  
  <p>Any ideas?</p>
  
  <p>Here is the relevant (I think, correct me if wrong) code for Ex1:</p>
  
  <p>Root.master,</p>
  
  <pre><code>&lt;body&gt;
  &lt;form id="pageForm" runat="server"&gt;
      &lt;asp:ScriptManager ID="SiteScriptManager" 
          runat="server" 
          AjaxFrameworkMode="Enabled" 
          EnablePartialRendering="True" 
          LoadScriptsBeforeUI="true"
          ScriptMode="Release"
          onasyncpostbackerror="SiteScriptManager_AsyncPostBackError" &gt;
          &lt;Scripts&gt;
              &lt;asp:ScriptReference Path="~/Scripts/jquery-1.7.1.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/jquery-ui-1.8.18.custom.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/jquery.tools.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/json2.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/modernizr.custom.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/PFF.js" /&gt;
          &lt;/Scripts&gt;
      &lt;/asp:ScriptManager&gt;
  ...
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>WebForm1.aspx,</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Master/Root.master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Pasha.OTTS.Web.FamiliesFirst.WebForm1" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="RootHeadContentPlaceholder" runat="server"&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="RootBodyContentPlaceholder" runat="server"&gt;
  &lt;asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server"&gt;
      &lt;Triggers&gt;
          &lt;asp:AsyncPostBackTrigger ControlID="dpShipments" /&gt;
      &lt;/Triggers&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:DataPager ID="dpShipments" runat="server" PagedControlID="lvShipments" PageSize="3" onprerender="dpShipments_PreRender"&gt;
          &lt;Fields&gt;
              &lt;asp:NextPreviousPagerField /&gt;
              &lt;asp:NumericPagerField /&gt;
          &lt;/Fields&gt;
          &lt;/asp:DataPager&gt;
          &lt;asp:ListView ID="lvShipments" runat="server" onpagepropertieschanging="lvShipments_PagePropertiesChanging"&gt;
          &lt;LayoutTemplate&gt;
              &lt;div class="table-wrapper"&gt;
                  &lt;table class="results"&gt;
                      &lt;tr&gt;
                          &lt;th&gt;A&lt;/th&gt;
                          &lt;th&gt;B&lt;/th&gt;
                      &lt;/tr&gt;
                      &lt;tr id="itemPlaceholder" runat="server"&gt;&lt;/tr&gt;
                  &lt;/table&gt;
              &lt;/div&gt;
          &lt;/LayoutTemplate&gt;
          &lt;ItemTemplate&gt;
              &lt;tr&gt;
                  &lt;td &gt;&lt;%#Eval("A")%&gt;&lt;/td&gt;
                  &lt;td &gt;&lt;%#Eval("B")%&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/ItemTemplate&gt;
          &lt;/asp:ListView&gt;
          &lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
          &lt;p&gt;Async: &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;  
          &lt;/p&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p></p>