473,466 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DirectorySearcher Pagination

Group,

I'm hoping someone can shed some light on active directory search pagination
for me. For the DirectorySearcher class there are several methods for
paging (.PageSize, .ServerPageTimeLimit) but there are no examples or
explanation. How do I implement pagination with these properties? I can't
seem to locate any pointers on this.

The closest I came was this fine article by Duncan Mackenzie
http://www.msdnaa.net/Resources/display.aspx?ResID=2338

As far as I can tell this "paging" is not what I would normally refer to as
paging... that is to say it does not appear to be a mechanism by which I can
specify that I want 20 records at a time, now please give me page n. It
looks rather like you are specifying the chunk size you want your results
in?

Or I have my head up the wrong place altogether... someone please help.

Regards,
Jason S.
Nov 15 '05 #1
2 7039
>I'm hoping someone can shed some light on active directory search pagination
for me. For the DirectorySearcher class there are several methods for
paging (.PageSize, .ServerPageTimeLimit) but there are no examples or
explanation. How do I implement pagination with these properties?


What exactly are you trying to accomplish? You want to retrieve the
first 100 elements, and then call again and retrieve elements no. 101
through 200?

Well, you can't do that with DirectorySearcher - the properties for
PageSize etc. are only meant as a workaround to be able to retrieve
large numbers of DirectoryEntries - the AD internally will send you
pages of results and then keep on searching until it's done. But you
on the "receiving" end basically end up getting a full result set.

Marc

================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #2
What exactly are you trying to accomplish? You want to retrieve the
first 100 elements, and then call again and retrieve elements no. 101
through 200?
Exactly
Well, you can't do that with DirectorySearcher - the properties for
PageSize etc. are only meant as a workaround to be able to retrieve
large numbers of DirectoryEntries - the AD internally will send you
pages of results and then keep on searching until it's done. But you
on the "receiving" end basically end up getting a full result set.


Oh, well that's a bummer. But thanks for your insight. The docs were a tad
fuzzy here.

Regards,
Jason
Nov 15 '05 #3

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

Similar topics

9
by: Sharif T. Karim | last post by:
Anyone know of a up-to-date tutorial for pagination where I can have it like: Prev 1 2 3 4 Next Thanks. -- Sharif T. Karim ....you don't know wrath yet...
5
by: Dave | last post by:
Hi All C# ADSI samples that I run cause unspecified errors. If I translate them into VB.NET they run fine. Here's an example: public string getEmail(string LDAPPath, string username) {...
2
by: Chris H | last post by:
I am having a problem with pagination, basically the problem is happening in the "PREV / NUMBERS / NEXT" links, it appears as if the reason is becasue the increment and decrement operators aren't...
11
by: ste | last post by:
Hi there, Further to my recent posts where I've received excellent help from Rik and Jerry, I've ended up with an image gallery on my website that displays images in a table, 3 images per row. ...
1
by: shalini jain | last post by:
Hi, I want to know how can we do pagination using XSL. There are number of tutorials available on pagination using PHP but nothing with XSL. i am really stuck with my code. Below is the code that...
16
by: gnawz | last post by:
I have a pagination function I am using in a file called functions.php as below<? //Pagination functions function getPagingQuery($sql, $itemPerPage = 10) { if (isset($_GET) && (int)$_GET > 0) ...
4
by: ArizonaJohn | last post by:
Hello, The code below works great. The user enters a name into an HTML form, the code looks up a table with that name, and then that table is displayed. I am trying to use pagination with it,...
2
by: kkshansid | last post by:
this is my search page on which i am getting two parameters from previous page but the problem is that as soon as i click any other next pages my sql query fails as it doesnt get these two parameters...
1
by: rienh | last post by:
I'am using Adam's pagination script from: http://www.developphp.com/view_lesson.php?v=289 And I adjusted the code just a little, so it fitted my needs. Now I bumb into a problem, and I can't figure...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.