hi,
I want to know that can we use multiple script manager on page in Ajax, if yes please give me a proper example and explain it?
Loading
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.
SenthilkumarPosted Apr 8, 2012, 5:28 AM
There is no need of using multiple script manager for AJAX.
whenever we use the AJAX script manager, it is mandatory to include the script manager. Which loads all the necessary script files to establish the AJAX stuff in the page.
If you master page then you can include it in the script manager.
Script manager can be added only once on a single page.
A ScriptManager is required on every page that wants to use the AJAX Library.
Script Manager:
More Info:
http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.aspx
http://msdn.microsoft.com/en-us/magazine/cc163354.aspx
Satyapriya NayakPosted Apr 8, 2012, 5:08 AM
You can use only one ScriptManager on a page.
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