M
Mike Trebilcock
Can anybody tell me when this code:
Select Case Mode
Case "TCM"
Trace.Write("TIGER.MainPage.PageLoad", "Calling TCMScreen")
TCMScreen()
Case "TIGER"
Trace.Write("TIGER.MainPage.PageLoad", "Calling TIGERScreen")
Case "ADMIN"
Trace.Write("TIGER.MainPage.PageLoad", "Calling AdminScreen")
Case Else
Trace.Write("TIGER.MainPage.PageLoad", "Session Lost")
Response.Redirect("Login.aspx")
End Select
Works when I use this code to fill the Mode variable
Dim Mode As String = "TCM"
But not work when I fill it with a session varible even though it has (I
believe) exactly the same value stored:
Dim Mode As String = Session("Mode")
I am begining to loose what little sanity I have left any advice would be
gratefully received
Mike
Select Case Mode
Case "TCM"
Trace.Write("TIGER.MainPage.PageLoad", "Calling TCMScreen")
TCMScreen()
Case "TIGER"
Trace.Write("TIGER.MainPage.PageLoad", "Calling TIGERScreen")
Case "ADMIN"
Trace.Write("TIGER.MainPage.PageLoad", "Calling AdminScreen")
Case Else
Trace.Write("TIGER.MainPage.PageLoad", "Session Lost")
Response.Redirect("Login.aspx")
End Select
Works when I use this code to fill the Mode variable
Dim Mode As String = "TCM"
But not work when I fill it with a session varible even though it has (I
believe) exactly the same value stored:
Dim Mode As String = Session("Mode")
I am begining to loose what little sanity I have left any advice would be
gratefully received
Mike