Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global.asax recognition of the object
Message
From
20/04/2006 16:34:19
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
20/04/2006 16:13:29
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01115130
Message ID:
01115142
Views:
8
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform