title: ASPX.NET UpdateProgress not working
body: <p>I am using .NET Framework 4.0. There is a grid control on my page which takes 10-15 sec to load. I am suing telerik RadDatePicker also, so you will see reference to telerik in the code. Now, I need to use UpdateProgress control till the grid loads. The code is compiling fine but does not show the Laoding.gif. Please help</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;%@ Page Language="C#"  AutoEventWireup="true" CodeBehind="MyReport.aspx.cs" Inherits="MyPage.MyReport" Title="Individual My Report" %&gt;
  
  &lt;%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %&gt;
  &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %&gt;
  &lt;asp:content id="HeaderContent" contentplaceholderid="head" runat="server"&gt;
   &lt;link rel="stylesheet" type="text/css" href="Styles/Site.css" /&gt;
   &lt;script language="javascript" src="Scripts/OnLoadFunctions.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/asp:content&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="cphMainContent" Runat="Server"&gt;
  
  
   &lt;div style="margin-bottom: 10px; margin-top: 20px;" class="noPrint"&gt;
    &lt;asp:button id="btnSaveAllTop" runat="server" text="Save All" onclick="btnSaveAll_Click" CssClass="btn"/&gt;
    &lt;asp:Button ID="btnSubmitHomeTop" runat="server" usesubmitbehavior="true" OnClick="btnSubmitHome_Click" Text="Home" CssClass="btn" /&gt;
   &lt;/div&gt;
  
  &lt;asp:UpdatePanel ID="grdMyUpdatePanel" runat="server"&gt;
   &lt;ContentTemplate&gt;
   &lt;asp:gridview id="grdMy" runat="server" CssClass="table table-bordered table-striped" autogeneratecolumns="false"&gt;
    &lt;!—Grid Cols--&gt;
   &lt;/asp:gridview&gt;
      &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
   &lt;div style="margin-top: 10px;" class="noPrint"&gt;
    &lt;asp:button id="btnSaveAllBottom" runat="server" text="Save All" visible=false onclick="btnSaveAll_Click" CssClass="btn" /&gt;
  
    &lt;asp:Button ID="btnSubmitHome" runat="server" CausesValidation="False" OnClick="btnSubmitHome_Click" Text="Home" CssClass="btn" /&gt;
   &lt;/div&gt;
  
   &lt;asp:Panel runat="server" ID="pnlUpdate" &gt;
  
       &lt;asp:UpdateProgress ID="UpdateProgress1" DisplayAfter="5000" runat="server" AssociatedUpdatePanelID="grdMyUpdatePanel"&gt;
          &lt;ProgressTemplate&gt;
               &lt;div class="container"&gt;
                      &lt;div class="content"&gt;
                          &lt;br /&gt;
                          &lt;table&gt;
                              &lt;tr&gt;
                                  &lt;td align="right" width="20%"&gt;
                                      &lt;asp:Image ID="img_Wait" runat="server" ImageUrl="Images/Laoding.gif" /&gt;
  
                                  &lt;/td&gt;
                                  &lt;td width="2%"&gt;
                                  &lt;/td&gt;
                                  &lt;td align="left" width="78%"&gt;
                                      Loading...
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/table&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
          &lt;/ProgressTemplate&gt;
      &lt;/asp:UpdateProgress&gt;
      &lt;/asp:Panel&gt;
  &lt;/asp:Content&gt;</code></pre>
  </div>
  </div>
  </p>