asp生成静态页的方法

| |
[不指定 2006/07/13 09:32 | by Else ]

<!--#include file="conn.asp" -->
<%
exec="select top 10 id,url from ruby where url=''"'这里是想到网速的问题!
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,3,3
do while not rs.eof
    
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set file_w = fs.CreateTextFile(server.MapPath("./html/"&rs("id")&".html"))
file_w.WriteLine("测试")
response.Write("Success!<br>生成生成html文件。文件已保存到:"&server.MapPath("./html/"&rs("id")&".html")&"<br>")    
file_w.close
set file_w=nothing
set fs=nothing
rs("url")="./html/"&rs("id")&".html"
rs.update
rs.movenext
loop
rs.close
set rs=nothing
conn.close
set conn=Nothing
%>


作者:Else 's Blog
地址:http://www.aixq.com/post/344/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
  • 中查看更多“asp生成静态页的方法”相关内容
  • 中查看更多“asp生成静态页的方法”相关内容
  • 中查看更多“asp生成静态页的方法”相关内容
  • 中查看更多“asp生成静态页的方法”相关内容
  • 中查看更多“asp生成静态页的方法”相关内容
  • 中查看更多“asp生成静态页的方法”相关内容
  • Tags: ,
    代码 程序 编程 | 评论(0) | 引用(0) | 阅读(2628)
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    昵称   密码   游客无需密码
    网址   电邮   [注册]