When Is ScriptManager/ScriptManagerProxy Required?

妖精的绣舞 提交于 2019-12-01 02:43:39

问题


I don't think I've been able to find a definitive answer on this, so I'll ask it here. When is a ScriptManager (or ScriptManagerProxy in the case of using a ScriptManager on a Master Page) needed?

For example, let's say that I have a ScriptManager on a MasterPage:

  1. If I have a Web Content Form that contains an UpdatePanel, does it need a ScriptManagerProxy?

  2. If I have a Web Content Form that contains a User Control and that User Control has an UpdatePanel in it, does the User Control need a ScriptManagerProxy?

  3. If I have a Web Content Form that contains an UpdatePanel and a UserControl that also contains an UpdatePanel, does the Web Content Form and/or the User Control require a ScriptManagerProxy?

Thanks.


回答1:


ScriptManagerProxy enables a content page to pass references to the ScriptManager placed on its ASP.NET master page.

Here is an asp.net video: http://www.asp.net/Learn/ajax-videos/video-95.aspx

Thanks

Joe



来源:https://stackoverflow.com/questions/1312397/when-is-scriptmanager-scriptmanagerproxy-required

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!