i would like to get the computer name when my site is hosted on server.
i will get the username when i running my site from local. here is my code.
Code
PrincipalContext ctx = new PrincipalContext(ContextType.Domain); UserPrincipal userp = UserPrincipal.Current;but when i publish my site on server i m not getting the system name
Answers
Know the answer? Post it. Somebody with the same question will find it here.