User.Identity.Name
Environment.UserName<
System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString()
Page.User.Identity.Name
System.Environment.UserName
HttpContext.Current.User.Identity.Name
authentication
authorization
Quote:You must enable Windows authentication by modifying your MVC application's web configuration (web.config) file. Find the <authentication> section and modify it to use Windows instead of Forms authentication like this: XML XML <authentication mode="Windows"> </authentication>
web.config
<authentication>
<authentication mode="Windows"> </authentication>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)