Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reference Property added to an Application
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
How to reference Property added to an Application
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01000861
Message ID:
01000861
Vues:
58
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

Répondre
Fil
Voir

Click here to load this message in the networking platform