Replacing the template tag when FsO generates a static html file has always been a very troublesome problem. At least I think so. Do not create another template. This is troublesome !, I saw a way to solve this problem today.
Such as a normal index. asp page, and use ASPCodeCall up the content in the database, create a makehtml. ASP page, and add a textarea domain, for example, name = "body". Call index. asp in textarea, for example:
<Textarea name = "body"> <! -- # Include file = "index. asp" --> </textarea>: Include this textareain the table list and create an fsoobject for the receiving table single page. For example, the index.html file is generated!Copy codeThe Code is as follows: <%
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
%>
The index.html file is generated, and the template is not required. You only need to read the ASP file used normally to textarea. No problem has been found yet! The premise is that the server must support FSO.