Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global Variables C#
Message
De
18/12/2009 20:05:05
 
 
À
18/12/2009 18:54:28
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01438724
Message ID:
01439895
Vues:
45
That worked Bonnie, thanks. Much simpler

>>you probably didn't wade through all the other posts in this thread

Excuse the terrible pun, but there was too much "static"






>>So, you probably didn't wade through all the other posts in this thread. <g> You don't actually have to instantiate the AppUserClass to set the AppUserID. Since it's all static, you really only have to do this, no instantiating needed:

AppUserClass.AppUserID = "MyID";

Now, if you have other stuff you're doing in the constructor, then the above probably isn't what you want to do. But, if not, then simply setting the static property is just fine (and easier).
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform