Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define global variables?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00848129
Message ID:
00848802
Views:
22
Michel,

To save something to session state you would do the following in VB.NET
Session("OrderDataSet") = dsOrder
To get at the value, you need to cast the object back to the original type
Dim dsOrders As DataSet = CType(Session("OrderDataSet"), DataSet)
>>You can't have static members unique to a session. You would need to use session variables instead.
>
>So, basically, assuming I would like to have a value unique to each user, I would need to create a session variable. Right now, what I have is for the entire application.
>
>What would be the process involved in creating a session variable? And, how would I gain access to it for each user?
-----------------------------------------

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