[英]How to rewrite pplEditor in Sharepoint to something that can be used in ASP.NET
我想写一个可以在活动目录中搜索用户的工具。 目前,我正在研究使用Sharepoint 2007的现有代码。我想将其从Sharepoint 2007转换为ASP.NET。 在此预先存在的代码中,有一个对sharepoint的pplEditor的引用,我假设该引用用于查看活动目录。 我想重写此代码,所以我完全不引用pplEditor。 相反,我想要一个可以访问活动目录中用户的“替代方案”。 代码在C#中。
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);
}
}
}
通过使用System.DirectoryServices 使用c#在Active Directory(AD)上进行所有操作 。
虽然可以在SharePoint中使用pplEditor,但不确定是否从pplEditor继承。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.