Hi,
>In my Global.asax, for every hit, I have this:
>
>
> Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
> LXFramework.oRequest = Request
> LXFramework.oResponse = Response
> LXFramework.oServer = Server
> LXFramework.BeginRequest()
> End Sub
>
>
>In Default.aspx, based on a specific condition, I am doing this:
>
>
>oApp.oResponse.Redirect("DataEntryDBUsers.aspx")
>
>
>oApp is the equivalent of LXFramework from the global.asax.
>
>So, basically, if the condition is met, I need to redirect to DataEntryDBUsers.aspx. I see this is working. The page appears ok. But, to my big surprise, I just found out that during a redirect, the Application_BeginRequest() event of the global.asax is not fired. Basically, this makes my framework believe that I am still on Default.aspx as Application_BeginRequest() has not been executed on the redirect.
>
>Can someone explain me why this is like that? Why the global.asax Application_BeginRequest() event is not fired on a redirect? How can I make that happen?
Response.Redirect() normally triggers a BeginRequest() - try it in the Page_Load() of Default.aspx as a test. Maybe something in the framework affecting it?
Regards,
Viv