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
%>


猜你喜欢
使用python怎样产生10个不同的随机数

pyhanlp安装介绍和简单应用

Access数据库导入Mysql的方法之一
form 元素内的字段 name 不要跟 form 属性名称一致
win7安装python生成随机数代码分享
php实现压缩多个CSS与JS文件的方法
IE下文本被折行的解决方案
python光学仿真学习wxpython创建手速测试程序

301转向和网址规范化
如何用Python进行时间序列分解和预测

运行tensorflow python程序,限制对GPU和CPU的占用操作
Python random模块制作简易的四位数验证码
Python使用UDP实现720p视频传输的操作

CentOS 5.5使用yum来安装LAMP(php运行环境)
如何在网页显示英语音标(附实例)

sql server实现递归查询的方法示例
Pytorch用Tensorboard来观察数据

Flask request 对象介绍

Windows自动执行python脚本操作步骤

vue实现简单的登录弹出框
