Hi,
Use WindowsIdentity component can get who's logging currently(username) from active directory.
private void GetUser()
{
HttpContext httpContext = HttpContext.Current;
WindowsIdentity winIdentity = (WindowsIdentity)httpContext.User.Identity;
string userIdentity = winIdentity.Name;
}
Regards,
anbukrish.