如何创建人物编辑器?
我正在构建一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的 asp.net 页面中,您可以像这样简单地使用 PeopleEditor 控件:
In your asp.net page, you can have PeopleEditor control as simple as this this:
您可以有一个只读 RichTextBox 来显示姓名,并有一个 ListBox 或其他显示您域中人员姓名的内容。您可以使用 System.DirectoryServices.ActiveDirectory 命名空间 进行 Active Directory 查找。这旨在取代从 Active Directory 获取名称时非常繁琐的旧 LDAP 查询。我还没有使用过它,但我听说它使用起来非常简单。
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.