Forum Moderators: open
response.write(bodysql)
response.write(server.mappath("/herbal-library/"))
response.end
Set rsupdate = conn.Execute(bodysql)
Set fso = Server.CreateObject("Scripting.FileSystemObject")
set fname = fso.OpenTextFile(Server.MapPath("/herbal-library/") & page_name ,2,true)
'fname.WriteLine("<!--#include file=""includes/header.asp""-->" & vbcrlf)
fname.WriteLine("<table cellpadding=""0"" cellspacing=""0"" width = ""90%"">" & vbcrlf)
fname.WriteLine("<tr>" & vbcrlf & "<td valign=""top"" class=""body"">" & vbcrlf)
fname.WriteLine("<table cellpadding=""0"" cellspacing=""0"">" & vbcrlf)
fname.WriteLine("<tr>" & vbcrlf & "<td>" & "<%=indexrs(""body_content"")%>" & "</td>" & vbcrlf)
fname.WriteLine("</tr>" & vbcrlf "</table>" & vbcrlf)
fname.WriteLine("</td>" & vbcrlf & "</tr>" & vbcrlf)
fname.WriteLine("</table>"& vbcrlf)
'fname.WriteLine("<!--#include file=""includes/footer.asp""-->")
fname.Close
Now the problem is, it isn't even hitting my sql response.write and the response.end. It's all being passed up.
Anyone have any ideas?
Ok, on second thought....
I'm trying to write an include line into the file. However, and include is processed immediately upon execution of page, and it doesn't care about asp comments.
How do I get around this?