超简单asp生成静态页面代码

作者:袖梨 2022-06-29





<%

Dim Filename,Fso,Fout
If Request.Form("asp2html")<>"" Then
Filename="htmer.html"
Set Fso=Server.CreateObject("Scripting.FileSystemObject")
Set Fout=Fso.CreateTextFile(Server.Mappath(Filename))
Fout.Write Request.Form("asp2html")
Fout.Close
Set Fout=Nothing
Set Fso=Nothing
End If

%>

本文章的目的就是为了告诉asp初学者如何生成静态页面罢了,在实际的应用中生成html页面复杂多了。

相关文章

精彩推荐