What is Scriptmanager control in Asp.Net?

 Posted by Rajesh_Kumar on 2/11/2014 | Category: ASP.NET AJAX Interview questions | Views: 1013 | Points: 40
Answer:

ScriptManager Control is a Server-Side Control and the most important and widely used control in AJAX.It uses Client-Side script to work with all the server side controls.
ScriptManager control by-default registers the script for the Microsoft AJAX Library with the page.This makes enable to use partial page rendering/partial page postback.
For working with AJAX,we must give reference of ScriptManager after <body> tag on the page like below:-

<asp:ScriptManager ID="scm" runat="server"></asp:ScriptManager>


Note:- We can have only one Scriptmanage Control on to a Page at a time.

It's a class as well as Control.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response