Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create User Object in code
Message
From
30/12/2004 11:27:49
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00973256
Message ID:
00973301
Views:
23
But Kirk, I don't see the shared keyword anywhere ... are you sure that this is working the way you want?

~~Bonnie



>Thanks Bonnie, that was the tip I needed, here is what I ended up with my class:
>
>
>Public Class CurrentUserClass
>    ' This class creates a structure that will store the current
>    ' user information after they successfully login to the application.
>    ' Example:
>    ' Public oUser As CurrentUserClass.Currentuser
>    ' oUser.LastName=dr.GetValue(3)
>    ' oUser.FirstName=dr.GetValue(4)
>    Structure Currentuser
>        Public FirstName As String
>        Public LastName As String
>        Public UserID As Integer
>        Public UserName As String
>        Public LoginTime As String
>        Public Workstation As String
>        Public InactivityTimer As Boolean
>        Public InactivityMins As Integer
>        Public supervisor As Boolean
>    End Structure
>End Class
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform