一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

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

时间:2010-06-05 编辑:简简单单 来源:一聚教程网





<%

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页面复杂多了。

热门栏目