Click here to Skip to main content
15,886,578 members
Home / Discussions / C#
   

C#

 
JokeRe: Converter converter = new Converter(delegate(int value) Pin
J4amieC25-Jun-09 5:15
J4amieC25-Jun-09 5:15 
GeneralRe: Converter converter = new Converter(delegate(int value) Pin
Dave Kreskowiak25-Jun-09 6:08
mveDave Kreskowiak25-Jun-09 6:08 
GeneralRe: Converter converter = new Converter(delegate(int value) Pin
Rajesh R Subramanian25-Jun-09 9:31
professionalRajesh R Subramanian25-Jun-09 9:31 
GeneralRe: Converter converter = new Converter(delegate(int value) Pin
Angel Romero25-Jun-09 5:19
Angel Romero25-Jun-09 5:19 
QuestionRe-Question Pin
Dong Cher, Ryu25-Jun-09 3:56
Dong Cher, Ryu25-Jun-09 3:56 
AnswerRe: Re-Question Pin
Luc Pattyn25-Jun-09 4:06
sitebuilderLuc Pattyn25-Jun-09 4:06 
AnswerRe: Re-Question Pin
EliottA25-Jun-09 4:09
EliottA25-Jun-09 4:09 
QuestionActive directory Users Pin
caiena25-Jun-09 3:51
caiena25-Jun-09 3:51 
i user this code to get all users on the domain but it only returns me 1,000 users the problem is i have over 3,000 users in my domain what can i do to get the entire user list from AD


public static ArrayList GetAllADDomainUsers()
{
string domainpath = @"LDAP://DC=tshospital,DC=com";
ArrayList allUsers = new ArrayList();

DirectoryEntry searchRoot = new DirectoryEntry(domainpath);
DirectorySearcher search = new DirectorySearcher(searchRoot);
search.Filter = "(&(objectClass=user)(objectCategory=person))";
search.PropertiesToLoad.Add("samaccountname");
SearchResult result;
SearchResultCollection resultCol = search.FindAll();
if (resultCol != null)
{
for (int counter = 0; counter < resultCol.Count; counter++)
{
result = resultCol[counter];
if (result.Properties.Contains("samaccountname"))
{
allUsers.Add((String)result.Properties["samaccountname"][0]);
//allUsers.Add(result.GetDirectoryEntry());
}
}
}
return allUsers;
}
AnswerRe: Active directory Users Pin
Manas Bhardwaj25-Jun-09 4:18
professionalManas Bhardwaj25-Jun-09 4:18 
QuestionDynamic crystal reports Pin
rajeshkiduvath25-Jun-09 3:48
rajeshkiduvath25-Jun-09 3:48 
AnswerRe: Dynamic crystal reports Pin
EliottA25-Jun-09 4:47
EliottA25-Jun-09 4:47 
AnswerRe: Dynamic crystal reports Pin
Behrooz_cs27-Jun-09 21:31
Behrooz_cs27-Jun-09 21:31 
Questionhow to fasten the datareader and insert process Pin
Ersan Ercek25-Jun-09 3:12
Ersan Ercek25-Jun-09 3:12 
AnswerRe: how to fasten the datareader and insert process Pin
harold aptroot25-Jun-09 3:52
harold aptroot25-Jun-09 3:52 
AnswerRe: how to fasten the datareader and insert process Pin
Luc Pattyn25-Jun-09 4:08
sitebuilderLuc Pattyn25-Jun-09 4:08 
AnswerRe: how to fasten the datareader and insert process Pin
PIEBALDconsult25-Jun-09 4:47
mvePIEBALDconsult25-Jun-09 4:47 
Questionstring Pin
arkiboys25-Jun-09 3:02
arkiboys25-Jun-09 3:02 
AnswerRe: string Pin
Keith Barrow25-Jun-09 3:08
professionalKeith Barrow25-Jun-09 3:08 
AnswerRe: string Pin
himanshu256125-Jun-09 3:13
himanshu256125-Jun-09 3:13 
AnswerRe: string [modified] PinPopular
musefan25-Jun-09 3:22
musefan25-Jun-09 3:22 
GeneralRe: string Pin
Keith Barrow25-Jun-09 3:37
professionalKeith Barrow25-Jun-09 3:37 
GeneralRe: string Pin
musefan25-Jun-09 4:07
musefan25-Jun-09 4:07 
GeneralRe: string Pin
EliottA25-Jun-09 4:08
EliottA25-Jun-09 4:08 
JokeRe: string Pin
J4amieC25-Jun-09 5:11
J4amieC25-Jun-09 5:11 
GeneralRe: string Pin
EliottA25-Jun-09 10:21
EliottA25-Jun-09 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.