Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.asax file
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00694438
Message ID:
00694533
Vues:
15
Have you tried including your code within a script tag inside the global.asax file?
<script runat="server">
    <object id="MyObjectName" runat="server" scope="application" class="DotNetClassName" />
</script>
Is there a reason why you are not using the Application object like the following:
Application("MyObjectName") = myobject
>I've been reading the docs on the Global.asax file and, according to what I've read, I should be able to add/create objects that are available to my application and web pages (they call them "Server-Side Object Tags"). The syntax is:
>
>
><object id="MyObjectName" runat="server" scope="application" class="DotNetClassName" />
>
>
>Where does this go in the Global.asax? I've tried putting it in several different places but the compiler chokes on it. I'm assuming Global.asax is the same as Global.asax.cs. Do I have to preface this somehow?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform