Hi All,
I've been searching all through this forum to find out the best way to make/use Global variables accessible within my app based on a user session. Many people say use Session variables but there must be a better way.
I've tried created a class called GlobalClass but the values are always lost when moving from page to page (unless I declare the vars as shared but then they lose their session uniquiness).
------------------------------------------
Public Class GlobalClass
Public sqlConn As New SqlConnection(ConfigurationSettings.AppSettings("GlobalSQLDataConnection"))
Dim LogonClass As New LogonClass
Public Weekrange As String
Public WEEK_ID As String
Public DayDetail As String
Public SelectedEntryNum As Integer
Public SelectedDate As String
Public IframeHeight As Integer
Public Submitted As Boolean
...
end class
-----------------------------------
Other then using session variables,hidden fields, or querystrings, is there another way to share small amounts of data accross pages?
I've been searching all through this forum to find out the best way to make/use Global variables accessible within my app based on a user session. Many people say use Session variables but there must be a better way.
I've tried created a class called GlobalClass but the values are always lost when moving from page to page (unless I declare the vars as shared but then they lose their session uniquiness).
------------------------------------------
Public Class GlobalClass
Public sqlConn As New SqlConnection(ConfigurationSettings.AppSettings("GlobalSQLDataConnection"))
Dim LogonClass As New LogonClass
Public Weekrange As String
Public WEEK_ID As String
Public DayDetail As String
Public SelectedEntryNum As Integer
Public SelectedDate As String
Public IframeHeight As Integer
Public Submitted As Boolean
...
end class
-----------------------------------
Other then using session variables,hidden fields, or querystrings, is there another way to share small amounts of data accross pages?