在网站页面上多次添加同一 Web 部件
我在同一页面上部署了相同 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
分享与 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.