sweta shah

sweta shah

  • NA
  • 4
  • 4.1k

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

Jun 29 2011 8:20 PM

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)