Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to define global variables?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00848129
Message ID:
00848395
Vues:
18
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform