Click here to Skip to main content
15,886,137 members
Articles / Web Development / ASP.NET

PleaseWaitButton ASP.NET Server Control 2.0

Rate me:
Please Sign up or sign in to vote.
3.60/5 (4 votes)
18 Aug 2006CPOL5 min read 58.9K   551   22  
Modified PleaseWaitButton (originaly written by Mike Ellison) for ASP.NET 2.0.
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 Page_Load(object sender, EventArgs e)
    {

    }
    protected void PleaseWaitButton1_Click(object sender, EventArgs e)
    {
        for (int i = 0; i == 10; i++)
        {
            System.Threading.Thread.Sleep(1000);
        }
        Response.Redirect("http://www.yahoo.com", true);
    }
}

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
Web Developer
United States United States
Working as software engineer for almost 10 years and during these years have develop several type of projects including ASP, ASP.NET, Widows form, Windows services, Web service and speech enable applications.

Comments and Discussions