ASP.NET UpdateProgress control Tutorial with Examples

Today, We want to share with you ASP.NET UpdateProgress control Tutorial with Examples.
In this post we will show you UpdateProgress control – ASP.NET Ajax Tutorial, hear for UpdateProgress control in asp.net we will give you demo and example for implement.
In this post, we will learn about Introduction to the UpdateProgress Control with an example.

Introduction: UpdateProgress control in asp.net

In this post, we will learn about how to use UpdateProgress control in asp.net in C# with example

Now in this post, I will explain about how to use UpdateProgress control in asp.net with C# example. This will use your own custome template(Any text or image) to show that an asynchronus method is working. While working with AJAX ,it will make asynchronus  call to server at that time browser will not show any status, so user may get impatient. In this type of scenario you can use UpdateProgress control to show some text or image which inform user that some internal process is going on.

READ :  How To Resolve jQuery is undefined error

Now open Visual Studio and create Web form application and write below lines of code in it.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateProgress.aspx.cs" Inherits="WebFormDemo.UpdateProgress" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>UpdateProgress control</title>
</head>
<body>
    <form id="frmMain" runat="server">
    <div>
     <asp:scriptmanager id="smMain" runat="server" />
        <asp:updateprogress runat="server" id="PageUpdateProgress">
            <progresstemplate>
                Please wait...
            </progresstemplate>
        </asp:updateprogress>
        <asp:updatepanel runat="server" id="Panel">
            <contenttemplate>
                <asp:button runat="server" id="UpdateButton" onclick="UpdateButton_Click" text="Update" />
            </contenttemplate>
        </asp:updatepanel>
    </div>
    </form>
</body>
</html>

In the code behind file write below lines of code.

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

This simple example will just show you how easy it is to use the UpdateProgress control in asp.net.

Read :

READ :  Angular Resource Encode and Decode URL

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Display ASP.Net AJAX UpdateProgress.
I would like to have feedback on my Infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.