简体   繁体   English

如何将Sharepoint中的pplEditor重写为可以在ASP.NET中使用的内容

[英]How to rewrite pplEditor in Sharepoint to something that can be used in ASP.NET

I would like to write a tool which can search through users in the active directory. 我想写一个可以在活动目录中搜索用户的工具。 At the moment, I am working on a pre-existing code that uses Sharepoint 2007. I would like to convert that from Sharepoint 2007 to ASP.NET. 目前,我正在研究使用Sharepoint 2007的现有代码。我想将其从Sharepoint 2007转换为ASP.NET。 Within this pre-existing code is a reference to pplEditor of sharepoint, which I am assuming is being used to look through the active directory. 在此预先存在的代码中,有一个对sharepoint的pplEditor的引用,我假设该引用用于查看活动目录。 I want to rewrite this code so I am not referencing pplEditor at all. 我想重写此代码,所以我完全不引用pplEditor。 Rather I would like an 'alternative' that can access the users in the active directory. 相反,我想要一个可以访问活动目录中用户的“替代方案”。 Code is in C#. 代码在C#中。

List(string)_lstExistingLogin = null; List(string)_lstExistingLogin = null;

        Label lblLoginID;

        if (pplEditor.ResolvedEntities.Count > 0)
        {
            if (gvAssignedTos.Rows.Count > 0){
            // if the hospital already has existing data coordinators associated with it, 
          // build a list of this set of existing datacoordinators
                _lstExistingLogin = new List<string>();
                foreach (GridViewRow row in gvAssignedTos.Rows)
                {
                    lblLoginID = (Label)row.FindControl("lblLoginID");

                    if (lblLoginID.Text.Length > 0)
                    {
                        _lstExistingLogin.Add(lblLoginID.Text);
                    }
                }
            }

ALL Operations on Active Directory (AD) using c# by using System.DirectoryServices. 通过使用System.DirectoryServices 使用c#在Active Directory(AD)上进行所有操作

Not sure whether you're inheriting from pplEditor, while it can be used in SharePoint. 虽然可以在SharePoint中使用pplEditor,但不确定是否从pplEditor继承。

People picker control implementation in asp.net mvc application ASP.NET MVC应用程序中的人员选取器控件实现

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM