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

时间:2010-07-02 12:31:00 

非常不错,大家可以自己应用下。

<% 
'//数据处理部分 
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="""""https://www.aspxhome.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
0
投稿

猜你喜欢

  • 使用python怎样产生10个不同的随机数

    2021-08-12 13:07:18
  • pyhanlp安装介绍和简单应用

    2022-04-10 14:22:13
  • Access数据库导入Mysql的方法之一

    2023-11-17 12:41:41
  • form 元素内的字段 name 不要跟 form 属性名称一致

    2008-10-22 13:25:00
  • win7安装python生成随机数代码分享

    2021-05-18 10:47:39
  • php实现压缩多个CSS与JS文件的方法

    2023-11-23 08:39:59
  • IE下文本被折行的解决方案

    2009-06-28 16:13:00
  • python光学仿真学习wxpython创建手速测试程序

    2023-12-06 20:57:28
  • 301转向和网址规范化

    2007-09-26 14:00:00
  • 如何用Python进行时间序列分解和预测

    2022-06-20 14:39:42
  • 运行tensorflow python程序,限制对GPU和CPU的占用操作

    2022-07-03 02:49:26
  • Python random模块制作简易的四位数验证码

    2023-06-29 07:41:50
  • Python使用UDP实现720p视频传输的操作

    2023-12-04 09:32:49
  • CentOS 5.5使用yum来安装LAMP(php运行环境)

    2023-11-14 12:15:52
  • 如何在网页显示英语音标(附实例)

    2010-01-12 17:07:00
  • sql server实现递归查询的方法示例

    2024-01-23 00:57:17
  • Pytorch用Tensorboard来观察数据

    2022-11-28 19:57:52
  • Flask  request 对象介绍

    2022-11-01 23:45:35
  • Windows自动执行python脚本操作步骤

    2023-04-22 15:32:42
  • vue实现简单的登录弹出框

    2024-05-21 10:30:12
  • asp之家 网络编程 m.aspxhome.com