This is possible if you use Windows authentication on your pages.
You can use either Page.User.Identity.Name or the more complete System.Web.HttpContext.Current.User.Identity.Name .
Read more about this here:
Enabling Windows Authentication in an ASP.NET Intranet Web Application
If you, however, use forms authentication, you will need to track the current user yourself, the most common method is to save their login in a session variable.
source share