Sharepoint:如何将受众过滤器添加到自定义控件?

发布于 2024-08-06 21:10:23 字数 218 浏览 2 评论 0 原文

在 MOSS 2007 中,我想将自定义控件添加到母版页的全局链接部分,并使其仅对特定受众可见。

受众是通过 SSL 登录的 Active Directory 组的成员,需要提供一个链接才能将他们注销。

如何过滤自定义控件以便只有这些用户才能看到它?是否有 API 或类似 Sharepoint:SPSecurityTrimmedControl 的东西可能有帮助?

In MOSS 2007 I want to add a custom control to the global link section of a master page and have it only visible to a particular audience.

The audience are the members of an active directory group who have logged in via SSL and need to be given a link which will log them out.

How can I filter a custom control so that only these users will see it? Is there an API or something like Sharepoint:SPSecurityTrimmedControl which might help?

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

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

发布评论

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

评论(1

不美如何 2024-08-13 21:10:23

是的,有一个面向受众的 API。以下是来自 MSDN 的一些链接,可帮助您入门:

  • 受众概述
  • < a href="http://msdn.microsoft.com/en-us/library/ms567140.aspx" rel="nofollow noreferrer">受众对象模型概述
  • 使用受众定位内容(几个操作方法和代码示例)

我还没有遇到针对受众的安全修剪控件但写一个应该相当容易。

Yes there is an API for audiences. Here are some links from MSDN to get you started:

I haven't come across a security trimmed control for audiences but it should be fairly easy to write one.

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