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
%>
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
使用python怎样产生10个不同的随机数
![](https://img.aspxhome.com/file/2023/7/67927_0s.png)
pyhanlp安装介绍和简单应用
![](https://img.aspxhome.com/file/2023/7/85277_0s.png)
Access数据库导入Mysql的方法之一
form 元素内的字段 name 不要跟 form 属性名称一致
win7安装python生成随机数代码分享
php实现压缩多个CSS与JS文件的方法
IE下文本被折行的解决方案
python光学仿真学习wxpython创建手速测试程序
![](https://img.aspxhome.com/file/2023/3/133573_0s.png)
301转向和网址规范化
如何用Python进行时间序列分解和预测
![](https://img.aspxhome.com/file/2023/1/82591_0s.jpg)
运行tensorflow python程序,限制对GPU和CPU的占用操作
Python random模块制作简易的四位数验证码
Python使用UDP实现720p视频传输的操作
![](https://img.aspxhome.com/file/2023/6/68836_0s.jpg)
CentOS 5.5使用yum来安装LAMP(php运行环境)
如何在网页显示英语音标(附实例)
![](https://img.aspxhome.com/file/UploadPic/20101/12/ipa_logo-93s.jpg)
sql server实现递归查询的方法示例
Pytorch用Tensorboard来观察数据
![](https://img.aspxhome.com/file/2023/0/68410_0s.png)
Flask request 对象介绍
![](https://img.aspxhome.com/file/2023/3/78543_0s.png)
Windows自动执行python脚本操作步骤
![](https://img.aspxhome.com/file/2023/1/101731_0s.jpg)
vue实现简单的登录弹出框
![](https://img.aspxhome.com/file/2023/8/123928_0s.jpg)