FSO to generate static HTML files when the replacement template label has been a very troublesome problem, at least I think so, but also to do a template, trouble! , I saw a way to solve the problem today.
such as a normal index.asp page, and the ASP code to bring up the contents of the database, and build a makehtml.asp page, add a textarea domain, assuming that name= "body", Index.asp in the textarea, such as:
<textarea name= "Body" ><!--#include file= "index.asp"--></textarea>, include this textarea in the form, Create an FSO object in the Receive form page, such as index.html file generation!
<%
Filename= ". /index.html "
If request ("Body") <> "" Then
Set fso = Server.CreateObject ("Scripting.FileSystemObject")
Set fout = FSO. CreateTextFile (Server.MapPath ("&filename&"))
Fout.write Request.Form ("Body")
Fout.close
Set fout=nothing
Set fso=nothing
End If
%>
So index.html file is generated, even templates are not needed, as long as the normal use of the ASP file read into the textarea can be, at present have not found the problem! Of course, the prerequisite is the server to support the FSO.