>In Default.aspx, in the Page_Load() event, if I do this:
>
>
> Dim loApp As Framework.Test = New Framework.Test
>
>
>It works. But, if I put this object creation in the Global.asax file like this:
>
>
><object id="LXFramework" runat="server" class="Framework.Test" scope="Application" />
>
>
>Then, in the Page_Load(), I would do a direct reference to LXFramework, it will tell me that LXFramework is not declared. The creation of the object is well done as when I do it manually, it works. But, something is not linking the content of Global.asax to my project. What is causing that?
Michel,
I'm guessing that you have to use the Application or Application.StaticObjects collections to get to global.asax declarations.