Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.asax recognition of the object
Message
De
20/04/2006 16:34:19
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
20/04/2006 16:13:29
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01115130
Message ID:
01115142
Vues:
9
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform