Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When Is ScriptManager/ScriptManagerProxy Required?

I don't think I've been able to find a definitive answer on this, so I'll ask it here. When is a ScriptManager (or ScriptManagerProxy in the case of using a ScriptManager on a Master Page) needed?

For example, let's say that I have a ScriptManager on a MasterPage:

  1. If I have a Web Content Form that contains an UpdatePanel, does it need a ScriptManagerProxy?

  2. If I have a Web Content Form that contains a User Control and that User Control has an UpdatePanel in it, does the User Control need a ScriptManagerProxy?

  3. If I have a Web Content Form that contains an UpdatePanel and a UserControl that also contains an UpdatePanel, does the Web Content Form and/or the User Control require a ScriptManagerProxy?

Thanks.

like image 546
Bullines Avatar asked Aug 21 '09 14:08

Bullines


People also ask

What is the use of ScriptManager?

ScriptManager is a server-side control that sits on your Web Form and enables the core of ASP.NET AJAX. Its primary role is the arbitration of all other ASP.NET AJAX controls on the Web Form and the addition of the right scripting libraries to the Web browser so that the client portion of ASP.NET AJAX can function.

Where do I put ScriptManager?

I would put the ScriptManager at the top of the Master page outside of any Multi-View. The ScriptManager is a what is used by the Microsoft controls to provide AJAX functionality.

What is ScriptManager control?

Introduction. 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.

How many ScriptManager controls we can use in a single page?

A page can contain only one ScriptManager control in its hierarchy.


1 Answers

ScriptManagerProxy enables a content page to pass references to the ScriptManager placed on its ASP.NET master page.

Here is an asp.net video: http://www.asp.net/Learn/ajax-videos/video-95.aspx

Thanks

Joe

like image 87
Joe Pitz Avatar answered Oct 13 '22 08:10

Joe Pitz