title: Update Panel Animation isn't showing up
body: <p>I can't seem to get an update panel with an animated GIF to pop-up when following a simple "recipe" in a popular blog.</p>
  
  <p>We're using ASP.NET 3.5 with VB codebehind pages (a little bit of AJAX sprinkled in but nothing complex).  The users are presented with a "selection page" full of the data they're allowed to edit.  The page has some checkboxes and drop-down lists at the top that are used as filters for the gridview right below.  Clicking the appropriate link on a given rown redirects you to a detail page for that item.</p>
  
  <p>The checkboxes, when triggered, cause another trip to the database to grab the list of objects that the datagrid is bound to (indicating what classes of objects are to be read from the database).  The drop-down lists are used to 'filter' the display.  Those filters run very quickly - no problem there.  However, certain trips to the database call up a lot of historical data and it takes a while for the page to redisplay.  We wanted something on the screen to tell the user that the software is running.</p>
  
  <p>We decided on trying the methodology used <a href="http://mattberseth.com/blog/2007/10/yui_style_ajax_progress_indica.html" rel="nofollow noreferrer">here in Matt Berseth's blog</a></p>
  
  <p>Unfortunately I must be doing something wrong as I'm not getting the pop-up animation panel.</p>
  
  <p>The first difference is that the page in question has a master page - I don't know if that's critical.  But here are snippets of the aspx after the asp:Content and asp:ScriptManager tags:</p>
  
  <p>First I have the onUpdating and onUpdate functions as in the example on the referenced page, modified only to comply with the name of my GridView.</p>
  
  <p>Then there's the start of the 'wrapping' div that starts with a table where the checkboxes and drop-down lists are.</p>
  
  <p>An example of how they're defined is as follows:</p>
  
  <pre><code>    &lt;asp:TableCell ID="TableCell4" runat="server"&gt;&lt;asp:CheckBox ID="chkShowCancelled" runat="server" Text="Cancelled" AutoPostBack="True" /&gt;&lt;/asp:TableCell&gt;
      &lt;asp:TableCell&gt;TO#:&lt;asp:DropDownList ID="ddlTO" runat="server" AutoPostBack="True"&gt;&lt;/asp:DropDownList&gt;&lt;/asp:TableCell&gt;
  </code></pre>
  
  <p>After that, is the UpdatePanel with the gridview in it:</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:GridView ID="grdRequests" runat="server" Style="z-index: 100; left: 0px; top: 0px" 
              AutoGenerateColumns="False" CellPadding="4" Font-Size="Small" ForeColor="#333333" 
              GridLines="None" PageSize="25" AutoGenerateSelectButton="False" AllowSorting="True" Width="100%" EnableViewState="False"&gt;
              &lt;HeaderStyle CssClass="tableheader" /&gt;
              &lt;FooterStyle BackColor="#000099" Font-Bold="True" ForeColor="White" /&gt;
              &lt;RowStyle BackColor="#EFF3FB" /&gt;
              &lt;Columns&gt;
                   ...Template Fields Deleted for Brevity...
              &lt;/Columns&gt;
              &lt;PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /&gt;
              &lt;SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /&gt;
              &lt;HeaderStyle BackColor="#034EA1" Font-Bold="True" ForeColor="White" /&gt;
              &lt;EditRowStyle BackColor="#2461BF" /&gt;
              &lt;AlternatingRowStyle BackColor="White" /&gt;
          &lt;/asp:GridView&gt;
      &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>Right after that is the AnimationExtender and the popup panel</p>
  
  <pre><code>&lt;cc1:UpdatePanelAnimationExtender runat="server" TargetControlID="updatePanel"&gt;
      &lt;Animations&gt;
          &lt;OnUpdating&gt;
              &lt;Parallel duration="0"&gt;
                  &lt;ScriptAction Script="onUpdating();" /&gt;
              &lt;/Parallel&gt;
          &lt;/OnUpdating&gt;
          &lt;OnUpdated&gt;
              &lt;Parallel duration="0"&gt;
                  &lt;ScriptAction Script="onUpdated();" /&gt;
              &lt;/Parallel&gt;
          &lt;/OnUpdated&gt;
      &lt;/Animations&gt;
  &lt;/cc1:UpdatePanelAnimationExtender&gt;
  &lt;asp:Panel ID="pnlPopup" runat="server" CssClass="progress" style="display:none;"&gt;
      &lt;div class="pcontainer"&gt;
          &lt;div class="pheader"&gt;Loading, please wait...&lt;/div&gt;
          &lt;div class="pbody"&gt;
              &lt;img alt="Progressing..." src="~/Images/activity.gif" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/asp:Panel&gt; 
  </code></pre>
  
  <p>Then just the end tag for the 'wrapping' div just before the table.</p>
  
  <p>In the examples, Matt simply puts the page to sleep with a System.Threading.Thread.Sleep(3000) statement in his Page.Load (after checking IsPostback) to let the animation pop up and display.  I've got plenty going on in the Page.Load (codebehind in VB) but the animation simply does NOT come up when I click on one of the checkboxes (to make a long trip to the database) or select something from a drop-down list (to filter the results I already have).</p>
  
  <p>If it matters, the wrapping div that has the Table, GridView, UpdatePanel, UpdatePanelAnimationExtender is defined with no properties.  It was really only there to delineate the Javascript from the asp tags.</p>
  
  <p>What am I missing?</p>