作家
登录

ASP 循环导入导出数据处理 不使用缓存

作者: 来源:www.28hudong.com 2013-03-30 08:24:23 阅读 我要评论

<% '//数据处理部分 dim Content,Num,I,strCodea I=request("I") If len(I)=0 then I=0 Response.write "<br><div align=center>该程序目前已经循环处理了"&I&"次数据</div><br>" strCodea="UploadFiles/News" '//需要查询是否包含的字符串 strCodeb="""""/UploadFiles/News" '//被替换的字符串 strCodec="""""http://www.jb51.net/uploadfiles/news" '//替换字符串 Set rs = server.CreateObject("adodb.recordset") rs.open "select content From news where id="&I&" and siteid=1 order by id desc",conn,1,1 If not(rs.eof or rs.bof) then Content=rs("content") Num=instr(content,strCodea) If Num>0 then If right(left(content,Num),2)="""""/" then content=replace(content,strCodeb,strCodec) end if end if end if Rs.close II=I+1 response.write("<meta http-equiv=""refresh"" content=""0;url=?I="&I""">") Set rs = Nothing %>

  推荐阅读

  ASP实现文件直接下载的代码

<%@ language=vbscript codepage=65001%> <% 'Filename must be input if Request("Filename")="" then response.write "<h1>Error:</h1>Filename is empty!<p>" else call downloadFile(replace(replace(Request(>>>详细阅读


本文标题:ASP 循环导入导出数据处理 不使用缓存

地址:http://www.17bianji.com/kaifa2/ASP/32104.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)