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

发布时间:2022-04-17 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了ASP 循环导入导出数据处理 不使用缓存脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
<%
'//数据处理部分
dim Content,Num,I,strCodea

I=request("I")
If len(I)=0 then I=0
Response.wrITe "<br><div align=center>该程序目前已经循环处理了"&amp;I&"次数据</div><br>"

strCodea="UploaDFiles/News" '//需要查询是否包含的字符串
strCodeb="""""/UploadFiles/News" '//被替换的字符串
strCodec="""""https://www.js-code.COM/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 循环导入导出数据处理 不使用缓存全部内容,希望文章能够帮你解决ASP 循环导入导出数据处理 不使用缓存所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。