2
Answers

Retrieving only 30 records from active directory per page and at the same time not loading all the data on the go

Photo of sweta shah

sweta shah

13y
2.5k
1

I have a web application and I have a feature of "Browse User Pictures". I have 1700 users. Now I am using Active Directory query to do that like: DirectorySearcher ldapSearcher = new DirectorySearcher(lrootDSE, strRetrieve); ldapSearcher.PageSize = 20; ldapSearcher.SizeLimit = 1700;

But it loads all the information from the server on the go and that slows my application. Can someone let me know a way where I can show user 30 entries per page and fetch only 30 records from Active Directory at a time

Answers (2)