WHAT IS THE ROLE OF A SCRIPTMANAGERPROXY?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
AJAX 
 1619  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    What is the role of a ScriptManagerProxy?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!