Compartilhar via


AJAX ScriptManagerProxy

On a recent MCMS to MOSS conversion project, I had to convert some existing templates to page layouts.  There were a couple of templates which were using AJAX.  Each template has its own instance of the ScriptManager because each has a different ServiceReference and ScriptReference declaration.  As I went through the conversion, I wanted to refactor the code and declare the ScriptManager in the master page, but doing that would mean that I have to declare all the ScriptReference and ServiceReference that ALL page layouts need.  I hesitated in doing so until I found out about the ScriptManagerProxy.  This class was designed to solve this exact problem!

 Here's a great video showing how to use it on a page.

Comments