手机
当前位置:查字典教程网 >编程开发 >ASP教程 >ASP 循环导入导出数据处理 不使用缓存
ASP 循环导入导出数据处理 不使用缓存
摘要:0thenIfright(left(content,Num),2)="""""/"thencontent=replace(content,s...

<%

'//数据处理部分

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.jb51.net/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数据库连接方式大全

ASP中怎么实现SQL数据库备份、恢复!

ASP中的时间函数大全 时间操作函数第1/2页

利用ASP发送和接收XML数据的处理方法

asp数据库防下载处理

ASP数据岛操作类

Asp类 的数据库领域

ASP得到文件的大小类型最后修改时间

在ASP中通过oo4o连接Oracle数据库的例子

如何使用ASP设置指定站点CPU最大使用程度

精品推荐
分类导航