R
Rudi Ahlers
Please help, I have tried all possible routes.
I have a table with a layout, and in one of the cells, I have :
<%=server.Execute(page)%>
The code that gives me this problem is:
newslink = request.QueryString("n")
IDno = request.QueryString("ID")
if newslink <> "" then
page = "news/" & newslink & ".asp"
If objFSO.FileExists("/news/" & page) = false Then
page = "news/news.asp"
End If
if IDno <> "" then
page = page & "?ID=" & IDno
end if
else
page = "home.asp"
end if
Now, when I type the following URL in,
http://localhost/newhp/index.asp?n=news, then it works fine
If, however I type in http://localhost/newhp/index.asp?n=news&ID=71, I get
the above error.
all the news stuff is in a seperate folder, but that shouldn't be a problem.
Please help?
--
Kind Regards
Rudi Ahlers
+27 (82) 926 1689
Greater love has no one than this, that he lay down his life for his friends
(John 15:13).
I have a table with a layout, and in one of the cells, I have :
<%=server.Execute(page)%>
The code that gives me this problem is:
newslink = request.QueryString("n")
IDno = request.QueryString("ID")
if newslink <> "" then
page = "news/" & newslink & ".asp"
If objFSO.FileExists("/news/" & page) = false Then
page = "news/news.asp"
End If
if IDno <> "" then
page = page & "?ID=" & IDno
end if
else
page = "home.asp"
end if
Now, when I type the following URL in,
http://localhost/newhp/index.asp?n=news, then it works fine
If, however I type in http://localhost/newhp/index.asp?n=news&ID=71, I get
the above error.
all the news stuff is in a seperate folder, but that shouldn't be a problem.
Please help?
--
Kind Regards
Rudi Ahlers
+27 (82) 926 1689
Greater love has no one than this, that he lay down his life for his friends
(John 15:13).