|
-
Dec 31st, 2009, 06:41 AM
#1
Thread Starter
New Member
[RESOLVED] Get username
Hi
I need to get the user ID so I have tried
System.Web.HttpContext.Current.Request.LogonUserIdentity.Name
which work fine when on my PC but when website deployed to a server return
NT AUTHORITY\NETWORK SERVICE as the user and I need the user id flogged in om the client machine.
any help greatly appriciated.
Regards
Colin
-
Dec 31st, 2009, 07:46 AM
#2
-
Dec 31st, 2009, 08:01 AM
#3
Thread Starter
New Member
Re: Get username
Thank mate, that works a treat now.
Cheers.
-
Dec 31st, 2009, 10:50 AM
#4
Re: [RESOLVED] Get username
Hey,
That is likely the identity that is set to run the application pool that your web application is running under.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|