Hi Zcolton,
Thanks for your reply. I found the problem yesterday, it is on the IIS version. I can get the value of the samaccountname on a server with IIS Version 6, but no on IIS version 5.
tsuji,
Now I am getting a different error
Active Directory error '8000500c'
The Active Directory datatype cannot be converted to/from a native DS datatype
/adsiquerytool/ADSIListUsersLDAP.asp, line 87
I changed the code so it looks like this...
For Each strmember In objgroup.MEMBER...
I can get sn and givenname by using either your code or mine but not the samaccount name (I have to comment out the samaccountname). Even I had the 's' on the objgroup.memeber(s) it seems work. After replacing mine with your code, I am getting the same error message
Microsoft VBScript...
tsuji,
Yes. I need to commend out the first response in order to get the second and third response.write line. Otherwise I get
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'samaccountName'
.
I want to get the user login name from LDAP, so I use SamAccountName, but keep getting the following error message.. I can get the value of the user's surname, givenname, name but not samAccountName. Can someone help?
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this...
I have a dropdown box which contains a value of "Other", when a user selected this value, a textbox will be displayed so user can specify the other value. I would like to know how to do this without a postback. Can someone share the javascript with me??? Thanks.
This is what I have.....
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
'Load checkbox list value from table
Me.LoadLookupTable.LoadCheckBoxList(cklistDiagnosedDisableConditions...
Hi,
I would like to know how can I display a text box when a special value (e.g. "other") is selected from a dropdown box, so users can specify the value in the text box. Thanks.
Does anyone knows how to perform a mail merge from ASP. I would like to know how to pass a ADO recordset( a mailing list) to Word to perform a mail merge. Thanks in advance.
Brian,
The re-admitdate is actually the 2nd admission date for this client and it is not on the table. I want to know how to read the 2nd admission date and make a NEW column called re-admdate so I can calculate the duration between the 1st and 2nd admission. Thanks.
Hi,
I would like to know how to calculate the number of days between 2 admissions. Here is my records look like:
ClientID admissionDate DischargeDate
0001 1/1/2004 1/3/2004
0001 1/4/2004 1/10/2004
0001 1/20/2004
how can I make it looks...
I have a fixed length text file which contains orders and products information. I would like to import this text file and split it so order info will be imported to order table and product info will go to product table.
The text file layout is;
orderNum ProductNum ProductDesc...
Yes. There is a single 0100 rec for each client per day. Instead of creating a new table or alter the table, can you create a recordset using stored procedure?
Hello,
I am new to stored procedure and I have no idea how to do this.
I have a table like this:
client# ServiceDate GroupCode ServiceCode
--------------------------------------------------
123 2/2/2003 0100 411
123 2/3/2003 0231 356...
I have a crystal report (no subreport) that need to get tables from 2 different database. The crystal report is called from asp. I would like to know how to connect to 2 SQL database at runtime from the asp page. Thanks in advance.
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.