在 Sharepoint 2010 中将 ASP.net Ajax 用户控件集成为 Web 部件时出现问题

发布于 2024-10-01 18:16:55 字数 498 浏览 1 评论 0原文

我在 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

澉约 2024-10-08 18:16:55

也许父控件或页面已经定义了 ScriptManager...

Perhaps the parent control or page already has ScriptManager defined...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文