Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global.asax file
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00694438
Message ID:
00694533
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform