Agent909
asked on
How do I set a global variable in VB.NET
I need to set a variable that will be available throughout the application. Is there any way to do this in VB.NET? I want to keep track of the user that's logged in.
Thank you
Thank you
you can create a public variable into a Module. It will be globally available .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Declare session variable
Or you can have application variable set at global.asax
ASKER
You helped me with both situations: in a Module or in a Class. Thank you!