<script runat="server"> Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim loApp As Framework.Framework.App = LXFramework loApp.BeginRequest() Dim loDataEntry As DataEntryPurchase = New DataEntryPurchase(loApp) loDataEntry.GenerateForm() End Sub </script>This would allow me to preserve the ability to have one framework initialization done at the global.asax level. However, once the page loads, I would take a copy of that common object into loApp. I would then use loApp to pass it to my business logic object. Thus, loApp would be proprietary to the hit and could not conflict with any other hit. This assumes that loApp.BeginRequest() would make use of HttpContext.Current to initialize loApp.oRequest and loApp.oRequest.
<script runat="server"> Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim loApp As Framework.Framework.App = LXFramework loApp.BeginRequest() Dim loDataEntry As DataEntryPurchase = New DataEntryPurchase(loApp) loDataEntry.GenerateForm() loApp.EndRequest() loApp.oResponse.Write(loApp.GetJavascriptMessage) End Sub </script>and remove Application_EndRequest() from global.asax.