按ID批量生成htm的问题

众联财务 2009-09-02 09:45:10
mb.asp?id=1 2 3 4 5 .......500

现在我要求生成 mb.asp?id=50~80中间的30个怎么写
...全文
58 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
众联财务 2009-09-02
  • 打赏
  • 举报
回复
现在生成的是这样的
''''''''''''''''''生成html开始''''''''''''''''''''''''''
ServerURL=CStr(Request.ServerVariables("SCRIPT_NAME"))
n=InStrRev(ServerURL,"/") '从右边第一个字符起查找"_"的位置,n为返回值
ServerURL=left(ServerURL, n-1)'显示从左边数第"n-1"个字符前面的字符,
n=InStrRev(ServerURL,"/") '从右边第一个字符起查找"_"的位置,n为返回值
ServerURL=left(ServerURL, n)'显示从左边数第"n"个字符前面的字符,
ServerURL="http://"&Request.ServerVariables("SERVER_NAME")&""&ServerURL&"mb.asp?id="&id&""

Set Mail1 = Server.CreateObject("CDO.Message")
Mail1.CreateMHTMLBody ServerURL,31
AA=Mail1.HTMLBody
Set Mail1 = Nothing
set objfso = Server.CreateObject("Scripting.FileSystemObject")
set htmout = objfso.CreateTextFile(server.mappath("../html/"&id&".htm"))
htmout.write replace(AA,"html/images/","images/")
htmout.close
set htmout=nothing
set objfso=nothing
''''''''''''''''''生成html结束''''''''''''''''''''''''''
众联财务 2009-09-02
  • 打赏
  • 举报
回复
gen url 什么意思
hookee 2009-09-02
  • 打赏
  • 举报
回复
这样?
For i=50 To 80
url = "mb.asp?id=" & i
filename = i & ".htm"
gen url, filename
Next
众联财务 2009-09-02
  • 打赏
  • 举报
回复
现在我要求生成html
id.htm
mb.asp?id=50~80中间的30个
不耐烦 2009-09-02
  • 打赏
  • 举报
回复
sql="select * from img where id between 50 and 80"

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧