在网站页面上多次添加同一 Web 部件

发布于 2024-11-14 08:35:40 字数 252 浏览 4 评论 0原文

我在同一页面上部署了相同 Web 部件的 2 个实例。

Web 部件有一个名为 Network 的属性,该属性将采用“Internal”或“External”值。

Webpart1 设置为内部。 WebPart2 上的网络设置为外部。

添加 Web 部件后,第一个 Web 部件上的任何事件都工作正常。第二个 Web 部件上的任何事件都将网络值显示为内部。如果我从页面中删除第一个 Web 部件,效果很好。

有什么想法吗?

I have 2 instances of same webpart deployed on same page.

Webpart has a property named Network, which will take values Internal or External.

Webpart1 is setup as internal. and Network on WebPart2 is setup as external.

After adding webpart, on any event on first webpart is working fine. Any event on Second Webpart shows Network value as Internal. It works fine if I remove the first webpart from the page.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

爱的那么颓废 2024-11-21 08:35:40

分享与 Web 部件属性相关的代码,以便提供解决方案。

一种可能的情况是属性或封装字段可能已在 Web 部件源中声明为静态。

Share your code related to the Web Part Property in order to give a solution.

One possible scenario might be that the property or encapsulated field might have been declared as static in the web part source.

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