[thelist] Including files within Response.write

Anthony Baratta Anthony at Baratta.com
Sun Mar 4 12:58:24 CST 2001


At 10:27 AM 3/4/2001, you wrote:
>Hi Folks...
>
>Am trying to get rid of all HTML within a page I'm working on.  But, I need
>to call include files, and this is not working. :(

Includes are performed by the web server "before" and ASP parsing is done. 
So you'll need to do the following:

<%
Response.write "</TABLE>" & vbcrlf &_
"<table border=""0"" cellspacing=""0"" &_
cellpadding=""12"" width=""95%"" align=""center"">" &_
vbcrlf & "<tr><td class=""content""> &_
%>
<!--#include virtual=""/includes/terms.asp""-->
<%
Response.write "</td></tr>" & vbcrlf & "<tr><td class=""content""> &_
<a href=""javascript:history.go(-1)"">&#171;Return</a> &_
</td></tr>" & vbcrlf & "</table>" & vbcrlf
%>

---
Anthony Baratta
President
Keyboard Jockeys





More information about the thelist mailing list