Monday, May 9, 2011

What is the Difference Between Script Manager and Script Manager Proxy ?

What is the difference between Script Manager and ScriptManager Proxy ?
ans : A page can contain only one scriptmanager control. if you have a master content page in ur application and  the master  contains a script manager control, then you can use the scriptmanager proxy control to add script to content pages


Also, If you come across scenario where only a few pages in your application need to register to script or a web service, then its best to remove them from the script manager control and add them to individual pages, by using the script manager proxy control. that is because if you added the scripts using the script manager 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 waste of resources.

No comments:

Post a Comment