I am trying to include a file that is chosen by using Request.QueryString
<%
Select Case Request.QueryString("displaypage")
Case "chapters/1.htm"
displaypage="chapters/1.htm"
Case "chapters/2.htm"
displaypage="chapters/2.htm"
Case Else
displaypage="chapters/1.htm"
End Select
%>
<!--#include file="<% = displaypage) %>"-->
However I'm getting the following error
Active Server Pages error 'ASP 0126'
Include file not found
/opm/index.asp, line 98
The include file '<% = displaypage) %>' was not found.
What's the best way round this?
Thanks very much
Ed
<%
Select Case Request.QueryString("displaypage")
Case "chapters/1.htm"
displaypage="chapters/1.htm"
Case "chapters/2.htm"
displaypage="chapters/2.htm"
Case Else
displaypage="chapters/1.htm"
End Select
%>
<!--#include file="<% = displaypage) %>"-->
However I'm getting the following error
Active Server Pages error 'ASP 0126'
Include file not found
/opm/index.asp, line 98
The include file '<% = displaypage) %>' was not found.
What's the best way round this?
Thanks very much
Ed