Skip to content

Instantly share code, notes, and snippets.

@ChrisMoney
Created August 27, 2015 21:55
Show Gist options
  • Save ChrisMoney/0410b4a52cc55eb87e83 to your computer and use it in GitHub Desktop.
Save ChrisMoney/0410b4a52cc55eb87e83 to your computer and use it in GitHub Desktop.
VB - Create Globals for Private Methods
Private _UserCount as Int32
Public Property UserCount() as Int32
Get
If ViewState("UserCount") Is Nothing Then
Return 0
Else
Return Convert.ToInt32(ViewState("UserCount"))
End If
End Get
Set (ByVal value as Int32)
ViewState("UserCount") = value
End Set
End Property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment