Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get ou list
- List<string> lst = db.sda(sql).Rows.OfType<DataRow>().Select(dr => dr.Field<string>("txt")).ToList()
- string OU = string.Empty;
- List<string> lst = new List<string>();
- foreach (string ou in Web.Info.Ldap.ouList)
- {
- lst.Add("OU=" + ou); // 6th revision .... this works, but wasn't as good as I thought it should be
- lst.Add(string.Format("OU={0}", ou)); // 7th revision .... this works as well, but I thought it could be done better, which is why I am here.
- }
- OU = string.Join(",", lst); // born of 6th revision, used in 7th also
- DC = string.Join(",", lst);
- string container = string.Join(",", OU, DC);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement