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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Apr 8, 2012, 1:08 AM EDT
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
SenthilkumarRank #387 · 6.5K reputationPosted Apr 8, 2012, 1:28 AM EDT
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