Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.asax file
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00694438
Message ID:
00694594
Vues:
16
You access and retrieve the Application key/values with the
Application["MyObjectName"]
syntax. You need to cast to the appropriate type as needed.

In the Application_Start you need to create a new reference to your security object that will be stored in the Application key/value called something like "Security". Then when you access the object, you will need to cast it to the security type.

Try this:

Application_Start
Application["Security"] = new KirtlandAssociates.Web.WebSecurity.Security();
To Access the key/value use
KirtlandAssociates.Web.WebSecurity.Security security = (KirtlandAssociates.Web.WebSecurity.Security)Application["Security"];
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform