[thelist] ASP SSI Question

Bob Fowler bob at rjf.ca
Thu Feb 28 09:52:01 CST 2002


> Maybe - but when I fixed it I realized that my main issue might be that
SSI
> is not accepting ?id=4 in the SSI call.
>
> When I do this:
>  <!-- #include file="page.asp" -->
> the page is found, but this
>  <!-- #include file="page.asp?id=<%=rs("x")%>" -->
> results in a page not found error.
>
> Any ideas?

This will absolutely *not* work.  To use an analogy, you have the cart
before the horse here...  When SSI is processing the include it is looking
for the _literal_  file="page.asp?id=<%=rs("x")%>".  Obviously, you don't
have a file named "page.asp?id=<%=rs("x")%>" on you hard drive.

If you do want to get this to work, you will need IIS5.  Here's how I would
do it:

do while not recordset.eof
   Server.Execute(page.asp?id=" & x)
loop

Thanks,

Bob.





More information about the thelist mailing list