What the role of Script Manager in Ajax control
What the role of Script Manager in Ajax control.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Sep 10, 2012, 7:50 AM
The ScriptManager control is central to Ajax functionality in ASP.NET. The control manages all ASP.NET Ajax resources on a page. This includes downloading Microsoft Ajax Library scripts to the browser and coordinating partial-page updates that are enabled by using UpdatePanel controls. In addition, the ScriptManager control enables you to do the following:
Register script that is compatible with partial-page updates. In order to manage dependencies between your script and the core library, any script that you register is loaded after the Microsoft Ajax Library script.
Specify whether release or debug scripts are sent to the browser.
Provide access to Web service methods from script by registering Web services with the ScriptManager control.
Provide access to ASP.NET authentication, role, and profile application services from client script by registering these services with the ScriptManager control.
Enable culture-specific display of ECMAScript (JavaScript) Date, Number, and String functions in the browser.
Access localization resources for embedded script files or for stand-alone script files by using the ResourceUICultures property of the ScriptReference control.
Register server controls that implement the IExtenderControl or IScriptControl interfaces with the ScriptManager control so that script required by client components and behaviors is rendered.
Refer
http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.aspx
http://msdn.microsoft.com/en-us/magazine/cc163354.aspx
Ex:-
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="how-to-use-ScriptManager.aspx.vb" Inherits="how_to_use_ScriptManager" %>
Partial Class how_to_use_ScriptManager
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = "Random Number : " & New Random().Next().ToString()
End Sub
End Class
Thanks
SaleemThuvvurPosted Sep 10, 2012, 7:38 AM