I have an application with 5 or so pages. I use a session variable to
make sure people login. It has been working fine.
I added two new pages to the application, cut and pasted the code for
login (as shown below) however the user gets sent right back to the
login page ( we login as usual). The other pages work fine. It is just
the two new pages I added.
TO make things tougher. This only happens on the production server, not
my desktop, no changes have been made to the production server.
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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!