我在asp.net页面中使用UpdatePaenl。它有一个按钮来触发它。当按钮被按下时,我可以显示“正在加载”。这里我的问题是,我需要它在页面第一次被调用时显示“正在加载”,而不仅仅是在按钮被按下的时候。
任何想法都是非常受欢迎的。谢谢
发布于 2009-05-13 02:47:12
下面是我为一个图片库小部件创建的一些示例代码:
<div>
<asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="updatePanel1" runat="server">
<ProgressTemplate>
<img src="images/busybar.gif" alt="Loading..." style="margin-right:auto; margin-left:auto; position:fixed; top:60%; left:50%;" />
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="updatePanel1" runat="server">
<ContentTemplate>
<uc1:PhotoAlbumThumbnails ID="PhotoAlbumThumbnails1" runat="server" ItemsPerPage="30" />
</ContentTemplate>
</asp:UpdatePanel>
</div>发布于 2009-05-12 07:55:59
你检查过UpdateProgress控件了吗?http://www.asp.net/Ajax/Documentation/Live/overview/UpdateProgressOverview.aspx
https://stackoverflow.com/questions/851512
复制相似问题