>
>Response.Redirect("Test2.aspx")
in the Page_Load() of Test.aspx
Ok, I have found what was causing this. Basically, BeginRequest() is executed before PreRequestHandlerExecute(). So, this is why oPage was not yet initialized to the calling page in my BeginRequest() framework method which is being called from Global.asax BeginRequest() event. What I did was simply to use my EndRequest() framework method, which is being called from Global.asax EndRequest() event, and put the condition in there.
The goal was to show a javascript alert message once but not on postback. As this parameter is received in the URL, I needed to assure that this message was only being shown once and not on postbacks.