第一种方法: System.Web.HttpContext.Current.User.Identity.Name.ToString();System.Web.HttpContext.Current.User.Id 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交