Why HttpContext.Current.Handler is null?

前端 未结 4 969
长发绾君心
长发绾君心 2020-12-18 00:42

I\'m trying to access a Page within an HttpModule and I think I should do this by calling HttpContext.Current.Handler (This should reference the current page) but I\'m getti

4条回答
  •  醉话见心
    2020-12-18 01:05

    Probably, the request has not been handed out to a handler yet (for example, you're in BeginRequest).

提交回复
热议问题