How to get the domain name and username of the client machine to save it to DB?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aman Aman

    #1

    How to get the domain name and username of the client machine to save it to DB?

    how can I get the domain name and username of the client machine to save it to DB in my intranet application.

    I have used
    System.Environm ent.UserDomainN ame.ToString() System.Environm ent.UserName.To String()
    Request.UserHos tName System.Net.Dns. GetHostEntry(Re quest.UserHostN ame).HostName System.Security .Principal.Wind owsIdentity.Get Current().Name;

    none of them gives me the logged in user and domain in the client machine.

    I am using windows authentication.

    thanks
Working...