Introduction: Ajax Control in ASP.NET

In this post, we will learn about Ajax Control in ASP.NET

Description:

In my previous posts I have explained various topics like AJAX Basics, Optional Arguments In C#, difference between Stack and Heap memory in C#, Difference Between Class And Structure, ASP.NET Core, C# static constructor, Nullables in C#, Collections in C#SortedSet in C#.Net, Stack in C#, Queue in C#.Net, LinkedList in C#.Net.

Now in this post, I will explain about Ajax Control in ASP.NET. AJAX stands for Asynchronous JavaScript and XML. The AJAX server controls add script to the page which is executed and processed by the client browser automatically.

The control toolbox in the Visual Studio IDE contains a group of controls called the ‘AJAX Extensions’.

It has several ajax control which are shown in below image and also explained later in the article.

Ajax Control in ASP.NET

Ajax Control in ASP.NET

1. The ScriptManager Control

The ScriptManager control is the most important control it must be required on the page for other ajax controls to work.This control takes care of the client-side script for all the server side controls.

2. The UpdatePanel Control

This control is a container control.It acts as a container for the other child controls and does not have its own visual interface.When any control is placed inside it, it triggers a post back, the UpdatePanel intervenes to initiate the post asynchronously and update just that small portion of the page.


3. The UpdateProgress Control

This control provides a sort of feedback on the browser while one or more update panel controls are being updated in the web page. It provides a visual interface like “Loading page…” or any image, indicating the work is in progress.

4. The Timer Control

This control is used to start the post back automatically. This could be done in two ways:
A. By using Triggers property of the UpdatePanel control
B. By using timer control directly inside the UpdatePanel to behave as a child control trigger.

Summary

I hope you got an idea about Ajax Control in ASP.NET.
I would like to have feedback from my blog readers.
I hope after reading this article you will be able to do this.
Your valuable feedback, question, or comments about this article are always welcome.

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *
Email *
Website