how to use update progress control in ajax?

Posted by aswinialuri-19361 under ASP.NET AJAX category on | Points: 40 | Views : 1931
Update progress is used for time interval control
Code in .aspx page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication7.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:Label ID="Label1" runat="server" Text="Initial page rendered."></asp:Label><br />
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<img src="ajax-loader (1).gif" alt="1" runat="server" />


code in .aspx.cs page:

 protected void Button1_Click(object sender, EventArgs e)
Label1.Text = "Page refreshed at " +

Comments or Responses

Login to post response