因为使用的是登录控件自动创建的登录入口,所以无法设置session,是否有办法知道当前登录用户的ID(或者用户名)?
HttpContext.Current.User.Identity.Name 在继承Page类中直接引用Context.Current.User.Identity.Name即可~