473,379 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

paging with idirectorysearch

Dear colleagues

When I query a active directory group with DirectoryServices.DirectoryEntry
then the results are limited to 1000 entries. I found that this must be done
with paging. This is also illustrated at the following pages:
http://msdn.microsoft.com/library/de...getnextrow.asp

http://msdn.microsoft.com/library/de...torysearch.asp

Some how I don't understand this illustration. How can I extend my code in
order to be able to receive all data?

Thanks ALex

The code I am using is as follow:

Dim root As New System.DirectoryServices.DirectoryEntry(GroupName_ AD)

Dim inmembers As PropertyCollection = root.Properties

Dim counter, countmax As Integer

For counter = 0 To inmembers(objlook).Count - 1

Dim membername, membername_AD, objecttype As String

membername = inmembers(objlook).Item(counter)

membername_AD = "LDAP://" & MyApplicationSettings.DomainController & "." &
MyApplicationSettings.LDAPDomain & ".roche.com/" & membername

Dim rootA As New System.DirectoryServices.DirectoryEntry(membername _AD)

objecttype = rootA.Properties("objectCategory")(0)
Nov 21 '05 #1
2 1543
You need to use the DirectorySearcher class in your code to be able to
specify the Page Size of the returned results. Take a look at

Using System.DirectoryServices to Search the Active Directory
http://msdn.microsoft.com/library/en...etadsearch.asp

Cheers,
John Wadie

Nov 21 '05 #2
Thanks a lot !! Alex
""John Wadie"" <jo********@egdsc.microsoft.com> wrote in message
news:DZ*************@cpmsftngxa10.phx.gbl...
You need to use the DirectorySearcher class in your code to be able to
specify the Page Size of the returned results. Take a look at

Using System.DirectoryServices to Search the Active Directory
http://msdn.microsoft.com/library/en...etadsearch.asp

Cheers,
John Wadie

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ck388 | last post by:
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update...
2
by: RelaxoRy | last post by:
sqlConnection1.Open(); myReader = sqlCommand1.ExecuteReader(); DataGrid1.DataSource = myReader; DataGrid1.DataBind(); myReader.Close(); sqlConnection1.Close(); The Datagrid populates fine. ...
6
by: Shawn | last post by:
Hi. I already have a datagrid where I'm using paging. I have a stored procedure that fills a temp table with 200-500 rows and then sends back 10 records at the time. When I go to page 2 the SP...
2
by: asad | last post by:
Hello friends, i am designing a ASP.NET page where i want to use custom paging bcoz data is too heavy so pls tell me how can i use custom paging in ASP.NET Thanks
2
by: farhad13841384 | last post by:
Hi , I Hope You fine. I have some problem with this code for paging in asp.net this bottom code work correctly without any error but when I try to place separate code in .VB file then error is...
0
by: anonieko | last post by:
This approach I found very efficient and FAST when compared to the rowcount, or Subquery Approaches. This is before the advent of a ranking function from DB such as ROW_NUMBER() in SQL Server...
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
3
by: Ronald S. Cook | last post by:
I was told that if calling lots of records from the database (let's say 100,000), that the GridView's paging feature would automatically "handle" everything. But the 100,000 records are still...
5
by: Donald Adams | last post by:
Hi, I will have both web and win clients and would like to page my data. I could not find out how the datagrid control does it's paging though I did find some sample code that says they do it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.