Server_Mule
Server_Mule

Reputation: 587

Update Panel asp.net

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

Upvotes: 0

Views: 1786

Answers (2)

Wayne Hartman
Wayne Hartman

Reputation: 18497

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>

Upvotes: 1

Khurram Aziz
Khurram Aziz

Reputation: 1498

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

Upvotes: 0

Related Questions