> Framework.App oApp = (Framework.App )Application.StaticObjects.GetObject("LXFramework""); >Thanks
>> oApp.oRequest = Request >> oApp.oResponse = Response >> oApp.oServer = Server >> oApp.oPage = Me >> oApp.BeginRequest() >>By the time BeginRequest() is entered oApp.oRequest could already be invalid!
Namespace Framework Public Class WebForm Inherits System.Web.UI.Page Public oApp As Framework.App = New Framework.App() Sub New() End Sub Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init oApp.nApplicationMode = 3 oApp.oServer = Server oApp.Initialize() oApp.oRequest = Request oApp.oResponse = Response oApp.oPage = Me oApp.BeginRequest() End Sub Sub Page_UnLoad(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Unload oApp.EndRequest() oApp.oResponse.Write(oApp.GetJavascriptMessage) End Sub End Class End NamespaceIn this actual code, I am creating an application object for every hit and that is done at the page level. So, I cannot see how this could conflict with another instance. This application object is created at every hit in the page. Into that application object, I am referencing the page Request and Response object. I don't see how this could fail. This seems to be independent per page.