如果是的ScriptManager /的ScriptManagerProxy必需? [英] When Is ScriptManager/ScriptManagerProxy Required?
问题描述
我不认为我已经能够找到这一个明确的答案,所以我会问在这里。如果是一个ScriptManager(或的ScriptManagerProxy使用一个ScriptManager母版页上的情况下),需要的?
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?
例如,让我们说,我有一个ScriptManager一个母版:
For example, let's say that I have a ScriptManager on a MasterPage:
-
如果我有一个包含一个UpdatePanel一个Web内容形式,它需要的ScriptManagerProxy?
If I have a Web Content Form that contains an UpdatePanel, does it need a ScriptManagerProxy?
如果我有一个Web内容形式,它包含一个用户控制和用户控制中有一个UpdatePanel,并在用户控件需要的ScriptManagerProxy?
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?
如果我有一个Web内容形式,它包含一个UpdatePanel和用户控件还包含一个UpdatePanel,并在Web内容形式和/或用户控制要求的ScriptManagerProxy?
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?
感谢。
推荐答案
的ScriptManagerProxy使内容页传递引用到的ScriptManager放置在它的ASP.NET母版页。
ScriptManagerProxy enables a content page to pass references to the ScriptManager placed on its ASP.NET master page.
下面是一个asp.net视频: <一href="http://www.asp.net/Learn/ajax-videos/video-95.aspx">http://www.asp.net/Learn/ajax-videos/video-95.aspx
Here is an asp.net video: http://www.asp.net/Learn/ajax-videos/video-95.aspx
感谢
乔
这篇关于如果是的ScriptManager /的ScriptManagerProxy必需?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!