在 Sharepoint 2010 中将 ASP.net Ajax 用户控件集成为 Web 部件时出现问题
我在 .Net Framework 3.5 中的 Visual Studio 中使用 Ajax Toolkit 3.5 创建了一个用户控件,然后将星级 Ajax 控件添加到该用户控件。
现在我想将此用户控件作为 Web 部件添加到 sharepoint 2010 网站。由于用户控件已经有一个 asp:ToolkitManager 来完成脚本管理器的工作,因此将此 Webpart 添加到 MOSS 站点上的页面会出现很多错误。目前,我在用户控件中保留了asp:ToolkitManger。
每当我打开包含用户控件的 MOSS 页面时,我收到的错误是“PageRequestManager 无法初始化多次”。
我不知道如何解决它。欢迎任何建议。
编辑:我相信sharepoint母版页有自己的脚本管理器。我无法删除它,因为其他页面会受到影响。如何修改 Visual Studio 中的用户控件,使其包含 ajax 更新面板,但引用共享点脚本管理器。
I created a user control in Visual Studio in .Net framework 3.5 and using Ajax Toolkit 3.5 and then added the Star Rating Ajax control to the user control.
Now I want to add this user control as a webpart to a sharepoint 2010 website. Since the user control already has a asp:ToolkitManager to do the work of script manager, adding this webpart to a page on the MOSS site gives a lot of errors. Currently, I have retained the asp:ToolkitManger in the user control.
The error I get whenever I open the MOSS page containing the user control is "PageRequestManager cannot be initialized more than once".
I have no idea how to go about it. Any suggestions are welcome.
EDIT: I believe the sharepoint master page has a script manager of its own. I can't remove it because the other pages will suffer. How do I modify the user control in Visual Studio so that it includes the ajax update panel but refers to the sharepoint script manager.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许父控件或页面已经定义了 ScriptManager...
Perhaps the parent control or page already has ScriptManager defined...