C#获取本机域名账号
System.Security.Principal.WindowsIdentity currentUser = System.Security.Principal.WindowsIdentity.GetCurrent(); string strUserName = currentUser.Name.ToString(); string s = User.Identity.Name;
System.Security.Principal.WindowsIdentity currentUser = System.Security.Principal.WindowsIdentity.GetCurrent(); string strUserName = currentUser.Name.ToString(); string s = User.Identity.Name;