如何创建人物编辑器?

发布于 2024-08-25 12:42:35 字数 183 浏览 4 评论 0原文

我正在构建一个 Windows 应用程序,将文档上传到共享点文档库并修改其列。
我的问题是我正在将文件上传到具有人员编辑器列的文档库。
为了解决我的问题,我想弹出一个包含人员编辑器的窗口表单,以便用户可以选择用户或组来填写该列。

如何创建一个像 sharepoint 中的人员编辑器?

I am building a windows application that upload documents to sharepoint document library and modify its column.
My problem is that i'm uploading a file to document libary that has a people editor column.
To solve my problem I want to pop up a windows form containing a people editor so users can pick the users or groups to fill in the column.

How can i create a people editor like the one in sharepoint?

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

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

发布评论

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

评论(2

蓝天白云 2024-09-01 12:42:35

在您的 asp.net 页面中,您可以像这样简单地使用 PeopleEditor 控件:

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<SharePoint:PeopleEditor runat="server" ID="peopleEditor" 
        AutoPostBack="true" AllowEmpty="false" SelectionSet="User,SecGroup,SPGroup" 
        BorderWidth="1" PlaceButtonsUnderEntityEditor="false" Rows="1" />

In your asp.net page, you can have PeopleEditor control as simple as this this:

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<SharePoint:PeopleEditor runat="server" ID="peopleEditor" 
        AutoPostBack="true" AllowEmpty="false" SelectionSet="User,SecGroup,SPGroup" 
        BorderWidth="1" PlaceButtonsUnderEntityEditor="false" Rows="1" />
不离久伴 2024-09-01 12:42:35

You could have a read-only RichTextBox to display the names, and have a ListBox or something showing the names of people from your domain. You can use classes from the System.DirectoryServices.ActiveDirectory namespace to do Active Directory lookups. This is meant to replace the old LDAP queries that were very tedious in getting names from Active Directory. I haven't used it yet, but I hear it's pretty simple to work with.

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