WINFORM中比较简单://获取客户端Windows登录名 string username = System.Environment.UserName;
WEBFORM程式中:用Page.User.Identity.Name来获得,具体可在开发IDE中通过TOOLTIP显示并选取。