Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include - Not including!

Status
Not open for further replies.

bigozz

Programmer
Apr 12, 2001
39
GB
I am trying to create an ASP script to retrieve the filenames of some .HTM files from an SQL database, written in another file. I get the file names, but when I try to generate the '#include file=' code, the browser ignores it. This is the code:-

Code:
<%while not myrs.eof%>
    <%=&quot;<!--#include file=&quot; & chr(34) & myRs(&quot;stFilename&quot;) & chr(34) & &quot;-->&quot;%>
    <%myRs.MoveNext%>
<%wend%>

Is there another way of including the code?

Thanks in advance.
 
Server Side includes are processed before any scripts. You can't put variables into #include statements.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top