What is the difference between scriptmanager and scriptmanagerproxy in asp .net?
asp .net中scriptmanager和scriptmanagerproxy有什么区别?
2 个解决方案
#1
19
You can only have one script manager per page but you can have multiple proxies.
每页只能有一个脚本管理器,但您可以拥有多个代理。
Used if you have the script manager in your master for instance which will go across all pages but you want a script manager reference in an underlying page or user control. In that instance you would add the proxy. If you added another script manager the page would error.
如果您的主服务器中有脚本管理器,则会使用该脚本管理器,该脚本管理器将遍历所有页面,但您希望在基础页面或用户控件中引用脚本管理器。在那种情况下,您将添加代理。如果您添加了另一个脚本管理器,则页面会出错。
The offical MSDN documentation gives the details.
官方MSDN文档提供了详细信息。
#2
1
The diffrence between "ScriptManager" and "ScriptManagerProxy" is only one , ScriptManagerProxy enables nested components to add script and service references if the page already contains a ScriptManager control , whereas ScriptManager includes the Microsoft AJAX Library and the functionality that enables partial-page rendering.Visit this, go to botton of the page :)
“ScriptManager”和“ScriptManagerProxy”之间的差异只有一个,如果页面已包含ScriptManager控件,则ScriptManagerProxy允许嵌套组件添加脚本和服务引用,而ScriptManager包含Microsoft AJAX库和启用部分页面呈现的功能。访问此页,转到页面的按钮:)
第二个链接示例
#1
19
You can only have one script manager per page but you can have multiple proxies.
每页只能有一个脚本管理器,但您可以拥有多个代理。
Used if you have the script manager in your master for instance which will go across all pages but you want a script manager reference in an underlying page or user control. In that instance you would add the proxy. If you added another script manager the page would error.
如果您的主服务器中有脚本管理器,则会使用该脚本管理器,该脚本管理器将遍历所有页面,但您希望在基础页面或用户控件中引用脚本管理器。在那种情况下,您将添加代理。如果您添加了另一个脚本管理器,则页面会出错。
The offical MSDN documentation gives the details.
官方MSDN文档提供了详细信息。
#2
1
The diffrence between "ScriptManager" and "ScriptManagerProxy" is only one , ScriptManagerProxy enables nested components to add script and service references if the page already contains a ScriptManager control , whereas ScriptManager includes the Microsoft AJAX Library and the functionality that enables partial-page rendering.Visit this, go to botton of the page :)
“ScriptManager”和“ScriptManagerProxy”之间的差异只有一个,如果页面已包含ScriptManager控件,则ScriptManagerProxy允许嵌套组件添加脚本和服务引用,而ScriptManager包含Microsoft AJAX库和启用部分页面呈现的功能。访问此页,转到页面的按钮:)
第二个链接示例