here is a simple way to generate a static HTML page ASP, without templates can be quickly generated. For example, to generate a normal index.asp page, and use the ASP code to bring up the contents of the database, and build a makehtml.asp page, add a textarea domain, assuming 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 premise is that the server to support the FSO component can.