For Programmers: Free Programming Magazines  


Home > Archive > ASP > January 2006 > HELP! SQL driven Include page not showing.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HELP! SQL driven Include page not showing.
Jozef

2006-01-22, 6:57 pm

Hello,

Is there a trick to using a vbscript / SQL server field value for an include
page line?

The SQL Server field "tContentPage" contains a text value "test.asp"

I am trying to call this "test.asp" page (which is just straight text <p>
Test This Text </p> ) using the following line
<td width="60%" valign=top><%="<!--#include file='system/HomePages/" &
ref("tContentPage") & "' -->"%></TD>

I can open this "test.asp" page directly by typing in the root URL plus the
/system/pages/test.asp.

When I run the calling page, it loads, does not throw an error, but will not
show any text.

When I look at the source, it's showing this line as the following literal
text string;

<td width="60%" valign=top><!--#include
file='system/HomePages/test.asp' --></TD>
....without processing the page itself.

Any ideas?

Thanks!



Bob Barrows [MVP]

2006-01-22, 6:57 pm

Jozef wrote:
> Hello,
>
> Is there a trick to using a vbscript / SQL server field value for an
> include page line?
>
> The SQL Server field "tContentPage" contains a text value "test.asp"
>
> I am trying to call this "test.asp" page (which is just straight text
> <p> Test This Text </p> ) using the following line
> <td width="60%" valign=top><%="<!--#include
> file='system/HomePages/" & ref("tContentPage") & "' -->"%></TD>
>

http://www.aspfaq.com/show.asp?id=2042
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com