ASPX.NET UpdateProgress无法正常工作

时间:2017-03-13 19:42:50

标签: c# updateprogress

我正在使用.NET Framework 4.0。我的页面上有一个网格控件,需要10-15秒才能加载。我也在起诉telerik RadDatePicker,所以你会在代码中看到对telerik的引用。现在,我需要使用UpdateProgress控件直到网格加载。代码编译正常,但没有显示Laoding.gif。请帮忙



<%@ Page Language="C#"  AutoEventWireup="true" CodeBehind="MyReport.aspx.cs" Inherits="MyPage.MyReport" Title="Individual My Report" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:content id="HeaderContent" contentplaceholderid="head" runat="server">
	<link rel="stylesheet" type="text/css" href="Styles/Site.css" />
	<script language="javascript" src="Scripts/OnLoadFunctions.js" type="text/javascript"></script>
</asp:content>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMainContent" Runat="Server">


	<div style="margin-bottom: 10px; margin-top: 20px;" class="noPrint">
		<asp:button id="btnSaveAllTop" runat="server" text="Save All" onclick="btnSaveAll_Click" CssClass="btn"/>
		<asp:Button ID="btnSubmitHomeTop" runat="server" usesubmitbehavior="true" OnClick="btnSubmitHome_Click" Text="Home" CssClass="btn" />
	</div>

<asp:UpdatePanel ID="grdMyUpdatePanel" runat="server">
 <ContentTemplate>
	<asp:gridview id="grdMy" runat="server" CssClass="table table-bordered table-striped" autogeneratecolumns="false">
		<!—Grid Cols-->
	</asp:gridview>
    </ContentTemplate>
    </asp:UpdatePanel>
	<div style="margin-top: 10px;" class="noPrint">
		<asp:button id="btnSaveAllBottom" runat="server" text="Save All" visible=false onclick="btnSaveAll_Click" CssClass="btn" />

		<asp:Button ID="btnSubmitHome" runat="server" CausesValidation="False" OnClick="btnSubmitHome_Click" Text="Home" CssClass="btn" />
	</div>

 <asp:Panel runat="server" ID="pnlUpdate" >

     <asp:UpdateProgress ID="UpdateProgress1" DisplayAfter="5000" runat="server" AssociatedUpdatePanelID="grdMyUpdatePanel">
        <ProgressTemplate>
             <div class="container">
                    <div class="content">
                        <br />
                        <table>
                            <tr>
                                <td align="right" width="20%">
                                    <asp:Image ID="img_Wait" runat="server" ImageUrl="Images/Laoding.gif" />

                                </td>
                                <td width="2%">
                                </td>
                                <td align="left" width="78%">
                                    Loading...
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    </asp:Panel>
</asp:Content>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

可能找不到图像来源。