Home > DeveloperSection > Interviews > What is the role of a ScriptManagerProxy?

Posted on    March-29-2011 8:51 AM

 1 Answer(s)
  1398  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    March-29-2011 12:00 AM

A page can contain only one ScriptManager control. If you have a Master-Content page scenario in your application and the MasterPage contains a ScriptManager control, then you can use the ScriptManagerProxy control to add scripts to content pages.
Also, if you come across a scenario where only a few pages in your application need to register to a script or a web service, then its best to remove them from the ScriptManager control and add them to individual pages, by using the ScriptManagerProxy control. That is because if you added the scripts using the ScriptManager on the Master Page, then these items will be downloaded on each page that derives from the MasterPage, even if they are not needed, which would lead to a waste of resources.

Don't want to miss updates? Please click the below button!

Follow MindStick