johnwood
asked on
address in the box in not the page's address.
I tested this:
In the address box, typed in http://127.0.0.1/test/Go.asp and returned. I then clicked the refresh button and I could see the page was redirected to Go.htm but found http://127.0.0.1/test/Go.asp was still in the address box.
Can you explain why ??
---------Go.asp----------- --------
<%
if session("antiStatus")="Go" Then
response.redirect("Go.htm" )
else
session("antiStatus")="Go"
end if
%>
This is Go.asp.
---------Go.htm----------- --------
<html>
This is Go.htm.
</html>
-------------------------- --------
In the address box, typed in http://127.0.0.1/test/Go.asp and returned. I then clicked the refresh button and I could see the page was redirected to Go.htm but found http://127.0.0.1/test/Go.asp was still in the address box.
Can you explain why ??
---------Go.asp-----------
<%
if session("antiStatus")="Go"
response.redirect("Go.htm"
else
session("antiStatus")="Go"
end if
%>
This is Go.asp.
---------Go.htm-----------
<html>
This is Go.htm.
</html>
--------------------------
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.