Forum Moderators: open
<%
' Get the Page Name
strQ = Request.ServerVariables("QUERY_STRING")
' Find the Model Number
nIndex = InStrRev(strQ,"/")
If (nIndex>0) Then
strModelNumber = Right(strQ,Len(strQ)-nIndex)
strQ = Left(strQ,nIndex-1)
End If
' Trim Off .htm From Model Number
strModelNumber =Left(strModelNumber,Len(strModelNumber)-4)
strModelNumber =Right(strModelNumber,Len(strModelNumber)-4)
Session("username")=strModelNumber
Server.Transfer("/Desc_test.asp")
%>
It is an attempt to make dynamic pages appear static. It works, but the problem is the url that appears in the address bar comes out like this:
[****xx.com...]
I thought by using a server.transfer, the url was supposed to remain static. Can anyone help. I am a bit confused.
Cheers
I realised that if I used the url:
h..p://www.****.com/xx/xx/32/
and the response.status "200 ok"
it solved by problem with the 404;http:// in the address bar.
My new problem is that the when I use the server.transfer the page works fine, but it is looking for the images in a directory that does not exist (xx/xx/32/images/).
How do I solve this problem. They are virtual links, and I would like them to stay like that.
Any help please.
Cheers