Global.asax

A

Andreas Zita

I don't understand how to access my global objects?

I have this global.asax file:

<%@ Application Codebehind="Global.asax.cs" Inherits="AlbumService.Global"
%>
<object id="AlbumSettings" runat="server" class="AlbumService.Settings"
scope="Application" />

According to http://www.csharphelp.com/archives/archive206.html the object
should be available everywhere in this Application through a Property named
"AlbumSettings" after the object-id? But I just keep getting this
error-message:

"The type or namespace name 'AlbumSettings' could not be found (are you
missing a using directive or an assembly reference?)"

Im using VS.NET 2003 and C#.

/Andreas
 
A

Alvin Bruney [MVP - ASP.NET]

Namespace name goes here . Class name goes here . public
method/property/event
Global.myClass.myValue roughly

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top