Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global Variables C#
Message
 
 
À
18/12/2009 20:05:05
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:
01439911
Vues:
46
That's why she's an MVP ;-) This is an excellent example of the value of the UT, contrary to the opinion of that drive-by guy from L.A. the other day.

>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).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform