B
bill joyce
I have an app that was running (about 5 pages). I have a session var in
page load (see below) that I use to make sure people login. I added two
pages to the application, on these two pages the session variable is not
being recognized after the first postback. The older pages work fine.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Session("LoggedIn") = False Then
Response.Redirect("Login.aspx")
End If
If Not IsPostBack Then
Call GetCustomerList()
End If
AddHandler cmbCustomer.SelectedIndexChanged, AddressOf
GetAssemblies
AddHandler cmbAssembly.SelectedIndexChanged, AddressOf
GetWorkFlow
End Sub
Thanks
Bill
page load (see below) that I use to make sure people login. I added two
pages to the application, on these two pages the session variable is not
being recognized after the first postback. The older pages work fine.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Session("LoggedIn") = False Then
Response.Redirect("Login.aspx")
End If
If Not IsPostBack Then
Call GetCustomerList()
End If
AddHandler cmbCustomer.SelectedIndexChanged, AddressOf
GetAssemblies
AddHandler cmbAssembly.SelectedIndexChanged, AddressOf
GetWorkFlow
End Sub
Thanks
Bill