I have a vb class "User" as follows:
Public Class User
Private m_strUserName As String
Private m_intUserID As Integer
Public Property UserName() As String
Get
UserName = m_strUserName
End Get
Set(ByVal Value As String)
m_strUserName = Value
End Set
End Property
Public Property UserID()
Get
UserID = m_intUserID
End Get
Set(ByVal Value)
m_intUserID = Value
End Set
End Property
End Class
I want to set these properties in a Login page and use them throughout the ASP.NET application (on various pages).
Is this possible? My experience with classes is limited.
Public Class User
Private m_strUserName As String
Private m_intUserID As Integer
Public Property UserName() As String
Get
UserName = m_strUserName
End Get
Set(ByVal Value As String)
m_strUserName = Value
End Set
End Property
Public Property UserID()
Get
UserID = m_intUserID
End Get
Set(ByVal Value)
m_intUserID = Value
End Set
End Property
End Class
I want to set these properties in a Login page and use them throughout the ASP.NET application (on various pages).
Is this possible? My experience with classes is limited.