Results 1 to 4 of 4

Thread: [RESOLVED] Get username

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    11

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Get username

    Does this help?

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    11

    Re: Get username

    Thank mate, that works a treat now.


    Cheers.

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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
  •  



Click Here to Expand Forum to Full Width