WSS 在 Web 部件之间共享属性

发布于 2024-07-23 06:17:22 字数 71 浏览 3 评论 0原文

是否可以在不同的 Web 部件之间共享属性? 我希望用户仅在一个 Web 部件中输入用户名和密码,并且可以在其他部件中访问它。

Is it possible to share properties between different web parts? I would like a user to only enter there user name and password in one web part and it be accessible in other parts.

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

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

发布评论

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

评论(2

何其悲哀 2024-07-30 06:17:22

我认为将属性存储在页面/站点的属性包中会更容易。 像这样,您不仅可以在 Web 部件之间共享它们,还可以在控件之间共享它们。

I think that it would be easier to store the properties in the property bag of the page/site. Like this you could share them not only among web parts but controls as well.

过潦 2024-07-30 06:17:22

您可以通过连接 Web 部件来完成此操作。 研究实现互补的 IRowProvider 和 IRowConsumer 接口。 本文介绍了基础知识并引导您完成示例。

You can do this by connecting the web parts. Look into implementing the complementary IRowProvider and IRowConsumer interfaces. This article explains the basics and walks you though an example.

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