I'did some Googing and found a Microsoft tip that states "You cannot use the distinguishedName attribute to sort an LDAP query in Windows 2000 or in Windows Server 2003"
http://support.microsoft.com/kb/842637
It contains the following code:
szQuery = "<LDAP://billtivpc01.ticehurst.com>;" + _...
I've tried adding an equals sign so line reads:
oRS.sort = "sn"
Now I receive the error "Current provider does not support the necessary interfaces for sorting or filtering."
This sounds to me like the asp ldap code doesn't support sorting. would it be possibe to put the ldap output into a table...
Thanks for the tip.
It's not working in this code though. The response is "Wrong number of arguments or invalid property assignment: 'sort'".
I've also tried with just one filed inthe sort statement, but still no luck.
Any advice?
thanks,
greg.
I use the following asp code to return staff details from AD to create a searchable web based address book. It works well but the results are displayed in a random order. could one of you code gurus please provide the code to sort the results alphabetically?
many thanks. Greg...
Dewey2- I haven't had this specific problem, but standard procedure for problems with client32 is to remove the client using unc32 (in the admin dir of the client), then reinstall the client. This has solved client32 problems for me.<br>
MrHanky- After reading your message I went looking for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.