Click here to Skip to main content
15,894,720 members
Articles / Web Development / XHTML

ASP.NET - UpdatePanelProgressExtender

Rate me:
Please Sign up or sign in to vote.
4.69/5 (10 votes)
24 Aug 2009CPOL14 min read 65.8K   3.6K   66  
An ASP.NET extender control for displaying a template based progress message overlay on UpdatePanel controls while the UpdatePanel is updating. A good Web 2.0 way of letting the user know their long running request is being processed.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{


    protected void updateButton1_Click(object sender, EventArgs e)
    {
        System.Threading.Thread.Sleep(2000);
    }

    protected void updateButton2_Click(object sender, EventArgs e)
    {
        System.Threading.Thread.Sleep(2000);
    }

    protected void externalUpdateButton1_Click(object sender, EventArgs e)
    {
        System.Threading.Thread.Sleep(2000);
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Netherlands Netherlands
Developer at AlertA contractbeheer.

Comments and Discussions