AJAX with Master Pages and User Controls

As per the user requirement or to improve the performance we often need to support AJAX inside the usercontrol we creates or directly in the master control pages of the site.

This will create an issue, since a page can contain only a single ScriptManager control. Having one inside the user control and another inside the page that consumes the user control.

To over come this issue we can use ScriptManagerProxy control.

The ScriptManagerProxy control can be used either by child pages that use a master page that already defines a ScriptManager control or by user and custom controls we creates. We can use it in the same way we use ScriptManager control. We can register scripts that are specific to the child page or control we are writing. ASP.NET takes care of the rest.

Video to know how to use ScriptManagerProxy,
http://www.asp.net/Learn/ajax-videos/video-95.aspx

Microsoft link related to ScriptManagerProxy,
http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanagerproxy.aspx


Article by Asheej T K
Thanks and Regards Asheej T K Dotnet Galaxy

Follow Asheej T K or read 33 articles authored by Asheej T K

Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: