Tuesday, May 14, 2013

How to use Ajax UpdateProgress Control in Asp.net

Introduction: In this post I will explain you we can use the Ajax Updateprogress control in Asp.net.
Open Visual Studio>File>New>Website. After that Add a new webform to website>Go to Toolbox>Ajax Extensions.
<asp:ScriptManager ID="ScriptManager1" runat="server">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
         <asp:Button ID="btnupdate" runat="server" Text="Update" onclick="btnupdate_Click" />
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <img src="Uploaded_Image/please-wait.gif" />
Now double click on button, which redirect you to .aspx.cs page. Add namsapce.
using System.Threading;

protected void btnupdate_Click(object sender, EventArgs e)

Imports System.Threading

Protected Sub btnupdate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnupdate.Click
    End Sub
Run the project and check the result.

No comments:

Post a Comment