views:

332

answers:

2

I am using an UpdatePaenl in an asp.net page. It has a button to trigger it. I'm able to show "Loading" when the button is pressed. Here my issue, I need it to show "Loading" when the page is first called, not just when a button is pressed.

Any ideas are greatly appreciated. Thanks

A: 

Have you checked UpdateProgress control? http://www.asp.net/Ajax/Documentation/Live/overview/UpdateProgressOverview.aspx

Khurram Aziz
+1  A: 

Here's some example code that I created for a photogallery widget:

<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>
Wayne Hartman