>><script runat="server"> >> Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load > LXFramework.oRequest = Request > LXFramework.oResponse = Response >> Dim loDataEntry As DataEntryPurchase = New DataEntryPurchase(LXFramework) >> loDataEntry.GenerateForm() >> End Sub >></script> >>I don't understand how this would be different than the actual setup in global.asax. Is it because in the Page_Load() event, getting Request and Response would make sure that this is proprietary to the current hit as oppose to the global.asax where Request and Response could come from a simultaneous hit? If that is the case, then this would be the updated BeginRequest() event in the global.asax:
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) LXFramework.oServer = Server LXFramework.BeginRequest() End SubBut, LXFramework.BeginRequest() method needs to have a reference to Request and Response. So, that wouldn't do as this would then be only available in the Page_Load() event.