time - Getting count of LDAP search results takes too long -


i have c# program searches users in active directory. execute search after applying propertiestoload line:

searchresultcollection adresults = adsearchname.findall(); 

this command takes less second execute. fine... fill combobox properties of results. therefore iterate through search results using line:

for (i = 0; < adresults.count; i++) 

however, takes 30 seconds program "adresults.count". when watching adresults, "function evaluation timed out" on count value. actual number of found results varies between 1 , ~30.

in end, results displayed correctly anyways. waiting 30 seconds after each search not handleable.

how can resolved? ps: getdirectoryentry not involved here in stage. @ first find out count of results.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -