AJAX IN .NET

Posted on Updated on

Image result for AJAXAJAX IN .NET

AJAX remains for Asynchronous JavaScript and XML. This is a cross stage innovation which accelerates reaction time. The AJAX server controls add script to the page which is executed and prepared by the program. However like other ASP.NET server controls, these AJAX server controls additionally can have techniques and occasion handlers connected with them, which are prepared on the server side. The control tool compartment in the Visual Studio IDE contains a gathering of controls called the ‘AJAX Extensions’.

The ScriptManager Control

The ScriptManager control is the most vital control and should be available on the page for different controls to work.On the off chance that you make an ‘Ajax Enabled webpage’ or include an ‘AJAX Web Form’ from the ‘Include Item’ exchange box, the web shape consequently contains the script supervisor control. The ScriptManager control deals with the customer side script for all the server side controls.

The UpdatePanel Control

The UpdatePanel control is a compartment control and gets from the Control class. It goes about as a holder for the youngster controls inside it and does not have its own particular interface. At the point when a control inside it triggers a post back, the UpdatePanel intercedes to start the post non-concurrently and redesign only that segment of the page. For instance, if a catch control is inside the redesign board and it is clicked, just the controls inside the upgrade board will be influenced, the controls on alternate parts of the page won’t be influenced. This is known as the halfway post back or the non-concurrent post back.

Example

Include an AJAX web frame in your application. It contains the script director control as a matter of course. Embed a redesign board. Put a catch control alongside a mark control inside the overhaul board control. Put another arrangement of catch and mark outside the board.

<form id=”form1″ runat=”server”>

<asp:UpdatePanel ID=”UpdatePanel1″ runat=”server”>

<ContentTemplate>

<asp:Button ID=”btnpartial” runat=”server” onclick=”btnpartial_Click” Text=”Partial PostBack”/>

<br />

<br />

<asp:Label ID=”lblpartial” runat=”server”></asp:Label>

</ContentTemplate>

</asp:UpdatePanel>

<p></p>

<p>Outside the Update Panel</p>

<p>

<asp:Button ID=”btntotal” runat=”server” onclick=”btntotal_Click” Text=”Total PostBack” />

</p>

<asp:Label ID=”lbltotal” runat=”server”></asp:Label>

</form>

Watch that when the page is executed, if the aggregate post back catch is clicked, it redesigns time in both the names yet in the event that the fractional post back catch is clicked, it just upgrades the mark inside the overhaul board.

A page can contain numerous redesign boards with every board containing different controls like a network and showing diverse piece of information. At the point when an aggregate post back happens, the redesign board substance is overhauled naturally. This default mode could be changed by changing the UpdateMode property of the control. Give us a chance to take a gander at different properties of the overhaul board.

The UpdateProgress Control

The UpdateProgress control gives a kind of input on the program while at least one overhaul board controls are being redesigned. For instance, while a client sign in or sits tight for server reaction while playing out some database situated employment. It gives a visual affirmation like “Stacking page…” demonstrating the work is in advance.

*****************************************************************************************************

For more details and queries please feel free to email, visit or call us. Wishing you the very best for all your future endeavors.
Helpline: 9814666333, 8699444666
Email: info@technocampus.co.in

Please fill the form and we shall contact you soon.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s