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.
在我的会话开始事件中,我如何知道哪个页面或处理程序触发了事件?
void Session_Start(object sender, EventArgs e) { }
例如,您可以使用HttpContext.Current.Request.Url。
HttpContext.Current.Request.Url
您可以在创建会话时使用它:
Path.GetFileName( Request.Url.AbsolutePath )