Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define global variables?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00848129
Message ID:
00848395
Views:
17
I would call these "Global Constants" since it is difficult and impractical to change them.

>>This has started as what seemed a simple task. But, then I did some searches and found that this is complicated. Can anyone point me to the proper way of defining a global variable in an ASP.NET application?
>
>
>You could add "key"s to the element in web.config file to store global variables.
>
>For example:
>
>
><appSettings>
>  <add key="myVar1" value="SomeValue" />
>  <add key="myVar2" value="SomeValue" />
></appSettings>
>
>
>HTH.
Previous
Reply
Map
View

Click here to load this message in the networking platform