加入收藏 | 设为首页 | 会员中心 | 我要投稿 聊城站长网 (https://www.0635zz.com/)- 智能语音交互、行业智能、AI应用、云计算、5G!
当前位置: 首页 > 教程 > 正文

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

发布时间:2023-05-30 14:41:00 所属栏目:教程 来源:
导读:非常不错,大家可以自己应用下。

<%

&#39;//数据处理部分

dim Content,Num,I,strCodea

I=request("I")

If len(I)=0 then I=0

Response.write "<br><div align=center>该程序目前已经循环处理
非常不错,大家可以自己应用下。
 
<%
 
'//数据处理部分
 
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.cuoxin.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
 
%>
 
 

(编辑:聊城站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!