Re: Retrieving users email address
From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 11/19/04
- Next message: Jack: "Response.write strsql does not yield desired sql statement"
- Previous message: Mike D: "calculating average from an array"
- In reply to: CJM: "Retrieving users email address"
- Next in thread: CJM: "Re: Retrieving users email address"
- Reply: CJM: "Re: Retrieving users email address"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 19 Nov 2004 17:18:37 GMT
On Fri, 19 Nov 2004 16:33:30 -0000, "CJM"
<cjmnews04@newsgroups.nospam> wrote:
>I'm trying to retrieve the users email address via ADSI in ASP.
>
>So far, I have the following code:
>
>Set oUser = GetObject("WinNT://domain/" & Request.Form("UID") & ",user")
>Response.Write oUser.EmailAddress
>
>But I get the following message:
>
>"The directory property cannot be found in the cache. "
>
>Any ideas where I am going wrong?
First guess is you're looking for a directory property that isn't in
the cache... :)
You're going to need to get specific and tell us versions of OS,
Active Directory or not, etc. Also, if the email address isn't in
your directory, you're still not going to get anything.
Jeff
- Next message: Jack: "Response.write strsql does not yield desired sql statement"
- Previous message: Mike D: "calculating average from an array"
- In reply to: CJM: "Retrieving users email address"
- Next in thread: CJM: "Re: Retrieving users email address"
- Reply: CJM: "Re: Retrieving users email address"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|