Powered by Blogger.

Friday, February 14, 2014

What is the role of ScriptManager in Ajax?



Here in this article we will discuss What is the role of ScriptManager in Ajax?

ScriptManager class is the heart of ASP.NET Ajax. ScriptManager is class and a control (both) in Ajax.

The ScriptManager class in ASP.NET manages Ajax Script Libraries, partial page rendering functionality and client proxy class generation for web applications and services. By saying client proxy class, this means an instance of the Ajax runtime is created on the browser.

This class is defined in the System.Web.Extensions.dll. You will find this DLL in your system's Global Assembly Cache at C:\Windows\Assembly (For XP)

The ScriptManager control is actually an instance of the ScriptManager class that we put on a web page. The ScriptManager manages all the ASP.NET Ajax controls on a web page.

Following tasks are taken care by the ScriptManager class:

1- Managing all resources (all objects/controls) on a web page

2- Managing partial page updates

3- Download Ajax Script Library to the client.

4- Interacting with UpdatePanel Control, UpdateProgress Control.

5- Register script (using RegisterClientScriptBlock)

6- Information whether Release OR Debug script is sent to the browser

7- Providing access to Web service methods from the script by registering Web services with the ScriptManager control

8- Enable culture specific display of client side script.

9- Register server controls that implement IExtenderControl and IScriptControl interfaces.
ScriptManager class' EnablePartialRendering property is true by default.



0 comments

Post a Comment