Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global.asax file
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00694438
Message ID:
00694594
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform