View Single Post
 
Old June 11th, 2003, 11:30 AM
dhborchardt dhborchardt is offline
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Response.Redirect

If I use the Response.Redirect on the previous page (24ProcAddEdit.asp), the following code will not work as intended.
The third choice (Else) will happen promting the question "where did you come from".
It appears that -Request.ServerVariables("HTTP_REFERER")- does not see what the previous page was. How do I fix this?
If I remove the Response.Redirect from the previous page and use a link to manualy get to this page it works fine

'Begin HOW DID WE GET HERE
If InStr(Request.ServerVariables("HTTP_REFERER"), "24ProcAddEdit.asp") Then
     strQSMEID = Session("sv24MEID")
     Response.Write "You came from 24"
 ElseIf InStr(Request.ServerVariables("HTTP_REFERER"), "20AddNewME.asp") Then
      strQSMEID =Request.QueryString ("MEID")
      Response.Write "You came from 20"
Else
            Response.Write "Where did you come from?"
End If
'End HOW DID WE GET HERE