views:

2851

answers:

3

Just wondering if anyone has seen any usable progress bar for C# .net apps. My app takes about 20-60 secs to load and I would love to show users a progress bar while they wait. I saw this one but the sample site doesn't seem to work which doesn't inspire confidence.

+1  A: 

I would look into this blog post - seems like a good way to do it. I haven't tested it myself...

http://mattberseth.com/blog/2008/05/aspnet_ajax_progress_bar_contr.html

Søren Pedersen
Looks like that bar is used after the app has loaded to notify users during long trips to the server. I need a bar to show as a splash screen while the page loads.
mrjrdnthms
+4  A: 

You can use the AJAX UpdateProgress control.

<asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:UpdateProgress runat="server" id="PageUpdateProgress">
        <ProgressTemplate>
            Loading...
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel runat="server" id="Panel">
        <ContentTemplate>
            <asp:Button runat="server" id="UpdateButton" onclick="UpdateButton_Click" text="Update" />
        </ContentTemplate>
    </asp:UpdatePanel>

If you want animation, all you need to do is pop an animated .gif into the 'ProgressTemplate'.

David HAust