Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference Property added to an Application
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
How to reference Property added to an Application
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01000861
Message ID:
01000861
Views:
60
If I add a Property the Global class in Global.asax, how should reference it on the aspx pages.
	public class Global : System.Web.HttpApplication
	{
		private CMyGlobalClass m_oGb = null;

		public CMyGlobalClass oGlobalObject
		{
			get 
			{
				return this.m_oGb ;
			}
		}
		public Global()
		{
			InitializeComponent();
		}
		private void InitializeComponent()
		{    
			this.m_oGb = new CMyGlobalClass();
		}
How can I reference Property oGlobalObject on a page?
Will this Application.oGlobalObject work?
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Reply
Map
View

Click here to load this message in the networking platform