preCharge Forums - View Single Post - How to declared the Global variables in web.config in asp.net ?
View Single Post
Old 07-08-2006   #3 (permalink)
agaba175
Banned User
 
Join Date: Jul 2006
Location: India
Age: 30
Posts: 105
Default Global Variables

Hi,
For global variable you can use the <app key="varName" value="varValue"> tag in web.config file in your asp.net project. There are some other ways also to declare a global variable. You can also use application or session objects to maintain your data between multiple pages. This is the treditional way to make a variable global, but in asp.net we can also use the web.config setting for global declaration. The important part of using the global var in web.config file is that you can change the values on the fly. Means you dont need to complie your application.

Cheers,
Amit
agaba175 is offline   Reply With Quote

 
Cash Advance | Web Advertising | Debt Consolidation | Car Blueprints | Remortgages