protected void Page_Load(object sender, EventArgs e)
{The Progress Bar Button Click then Progress bar is Working as You see Image
if (!IsPostBack)
{
Label1.Text = DateTime.Now.ToLongTimeString();
Label2.Text = DateTime.Now.ToLongTimeString();
}
}
protected void ProgressBarButton_Click(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(3000);
Label2.Text = DateTime.Now.ToLongTimeString();
}
No comments:
Post a Comment