Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create User Object in code
Message
De
30/12/2004 11:27:49
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00973256
Message ID:
00973301
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform