RE: SSI with ASP
by "Krimm, Nik" <nik.krimm(at)marchFIRST.com>
|
| Date: |
Wed, 16 Aug 2000 12:43:28 -0500 |
| To: |
"'Jeff Pearson'" <dalamar(at)golden.net>, HWG Languages <hwg-languages(at)mail.hwg.org> |
| |
todo: View
Thread,
Original
|
|
I remember reading somewhere that you cannot use dynamic values with
includes in ASP; I think because the includes are processed first, before
the ASP is processed (or something like that).
What I do (inelegant - maybe someone else will have a better solution) is
use if/then to determine
which includes to *display* (it will include *all* of them). This isn't a
great solution if you have a
lot of diffent possible values, but can work for some solutions.
Going a different direction, if you are using a database, you can use a memo
field to
store a pretty good sized chunk of text, and then
make a dynamic call to the database, instead of to an include file.
-----Original Message-----
From: Jeff Pearson [mailto:dalamar(at)golden.net]
Sent: Wednesday, August 16, 2000 11:48 AM
To: HWG Languages
Subject: SSI with ASP
Hello,
I have a question about using Server Side Includes in a dynamic page
with ASP. I have to display a "detail page" with advertiser contact
information including an image and a text description not in a database.
I can get the image to display fine (not using SSI as there is no need)
but how do I display the appropriate external text file with SSI? I have
tried virtual include and file include both using dynamic values:
<!--#include virtual="<% Request.QueryString("id") %>.txt"-->
<!--#include
virtual="<%=(rsAdvertiserDetail.Fields.Item("phone'").Value)%>.txt"-->
(The 'id' parameter contains the same value as the "phone" parameter.)
It always returns with the same error that the include file cannot be
found. As soon as it sees the next quote it thinks that is what its
looking for.
the include file'
<%=(rsAdvertiserDetail.Fields.Item(
'cannot be found
Is there another way, or will I have to place the text into the
database?
Anyone ever run into this?
Jeff Pearson
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.