To get the current logged in user at the system I use this code:
string opl = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
The quick answer is User = System.Web.HttpContext.Current.User
User = System.Web.HttpContext.Current.User
Ensure your web.config has the following authentication element.
Further Reading: Recipe: Enabling Windows Authentication within an Intranet ASP.NET Web application