JofeWistose
New Member
I'm investigating where does the Page object is initially created in the HttpModule Pipeline : \[code\] HttpModule =========== #1 BeginRequest #2 AuthenticateRequest #3 AuthorizeRequest #4 RespolveRequestCache #5 AcquireRequestState #6 PreRequestHandnlerExecute Handler ======== #7 ProcessRequest ... later stages ================\[/code\]and here is my expirament : I've register each function to execute a specific method : \[code\] void check(object sender, EventArgs e) { Page objPage = (sender as HttpApplication).Context.Handler as Page; if (objPage == null) return; ... }\[/code\]the first stage where the "safe cast" worked successfully was the \[code\]AcquireRequestState\[/code\] .Question : It did worked for me , but is it a safe place to acquire the page class ? Also , why isn't it documented anywhere ? I've searched in Msdn in what stage the page class is first accessible , and couldn't find any.