Hi
I would like to set session to hold value and then use this value to display heading.
I have setHeading and setGraphic, session variables. setHeading hold string value ie True and False and setGraphic; name of graphic.
When user first open Home page, It would set setHeading to True and name for the graphic. As shown below;
<%
Dim setSessionHeader
Dim headGif
If ((Session("setSessionHeader") = "False")
OR (isEmpty(Session("setSessionHeader")))
OR (IsNull(Session("setSessionHeader")))) Then
Session("setSessionHeader") = "False"
End If
If ( Session("setSessionHeader") = "False") Then
If (Right(Request.ServerVariables("HTTP_REFERER"),1) = "F" ) Then
Session("headGif")= "FadHeading"
Else
Session("headGif")= "InfHeading"
End If
Session("setSessionHeader") = "True"
End If
%>
But this dosn't seem to be working
I have also tried using Session.Contect, instead of just Session.
Please could you this code and see where I am going wrong.
many thank
I would like to set session to hold value and then use this value to display heading.
I have setHeading and setGraphic, session variables. setHeading hold string value ie True and False and setGraphic; name of graphic.
When user first open Home page, It would set setHeading to True and name for the graphic. As shown below;
<%
Dim setSessionHeader
Dim headGif
If ((Session("setSessionHeader") = "False")
OR (isEmpty(Session("setSessionHeader")))
OR (IsNull(Session("setSessionHeader")))) Then
Session("setSessionHeader") = "False"
End If
If ( Session("setSessionHeader") = "False") Then
If (Right(Request.ServerVariables("HTTP_REFERER"),1) = "F" ) Then
Session("headGif")= "FadHeading"
Else
Session("headGif")= "InfHeading"
End If
Session("setSessionHeader") = "True"
End If
%>
But this dosn't seem to be working
I have also tried using Session.Contect, instead of just Session.
Please could you this code and see where I am going wrong.
many thank