开发者

read from context items in httpmodule

I have a http module in my asp.net c# web application.

I insert a value into context items on the OnPreInit of my Page.

I want to read this value from the context items开发者_运维百科 in my httpmodule. However I can't find which event in my httpmodule this can be read at. The latest I have tried is the PreRequestHandlerExecute event.

Could someone point me in the correct direction what event in the httpmodule I can read this value from the context items?


You have to intercept request event after the handler and the state have been assigned. Use PostAcquireRequestState event in your particular scenario

context.PostAcquireRequestState += OnPostAcquireRequestState;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜