Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在Application_AuthenticateRequest事件或任何事件中捕获用户名吗?
Application_AuthenticateRequest
我用HttpContext.Current.Request.LogonUserIdentity
HttpContext.Current.Request.LogonUserIdentity
如果应用程序池管道模式设置为经典,那么您可以使用:
HttpContext.Current.User;