Anything declared in the Global.asax as public should be automatically
available to all pages by using:

string myStr = Global.myGlobalVariable

As an alternative, I create a "Globals" class file and reference it at
the top of every code-behind. This seemed to give me a little more
flexibility and organization in creating the global variables, enums,
and structs that I use throughout my applications. 

-----Original Message-----
From: Gerald de Bueger [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 8:00 AM
To: dotnet
Subject: equivalent of tlb file in asp.Net

Hi all, 

I'm new to .net and want to learn how to do stuff I did in asp in
ASP.Net 
First is what is the equivalent of  :
 
 <! - - METADATA TYPE="typelib" FILE="D:\lyb\commonVariabl.tlb" - - > 

I used to create tlb files with lot of variable I need to access from
the site. If I include this line in the global.asa file the variables
will be accessible throughout the whole website. What is the equivalent
for .Net (c#). 
Ideally, I wouldn't want to declare the variables. I would only want to
access them by doing something like this: 
 
String sText = varComingFromTheLybFile; 
 
Thanks for your help. I hope I was clear enough. 
 
Gerald


---
You are currently subscribed to dotnet as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/



---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to