Re: SSI with ASP
by "Paul Varese" <varese(at)home.com>
|
Date: |
Wed, 16 Aug 2000 23:18:55 -0700 |
To: |
"Jeff Pearson" <dalamar(at)golden.net>, "HWG Languages" <hwg-languages(at)mail.hwg.org> |
References: |
golden |
|
todo: View
Thread,
Original
|
|
I think you might be making this a little more complicated than you need to.
Rather than storing a bunch of separate files for each data chunk, you could
just use a case statement inside your include:
<% Select Case Request.QueryString("id")
Case "123" %>
Advertiser 123 Text Goes Here
<% Case "XYZ" %>
Advertiser XYZ Text Goes Here
<% Case "666" %>
Advertiser 666 Text Goes Here
<% End Select %>
----- Original Message -----
From: "Jeff Pearson" <dalamar(at)golden.net>
To: "HWG Languages" <hwg-languages(at)mail.hwg.org>
Sent: Wednesday, August 16, 2000 9:47 AM
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