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;