CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Monday, September 25, 2006

Update Progress Bar Control in ASP.NET and AJAX Activity Image Animations

One of the cool new controls provided with the ASP.NET AJAX Extensions (aka "Atlas") is the UpdateProgress control.  This control allows you to automatically cause UI to display on a page while an AJAX callback is in progress, and also allows you to provide UI to enable a user to optionally cancel the AJAX callback if it is taking too long.  To use this control on a page, simply declare it like so:

Each site allows you to download spinning gears and progress icons that you can use.  A few examples can be found below:

    <atlas:UpdateProgress ID="progress1" runat="server">
        <ProgressTemplate>    
           
<div class="progress">
                <img src="indicator.gif" /> 
                Please Wait...
            </
div>      
       
</ProgressTemplate>
    </atlas:UpdateProgress>

Update Progress Bar Control in ASP.NET and AJAX Activity Image Animations

Post a Comment