网络编程
位置:首页>> 网络编程>> Asp编程>> ASP 循环导入导出数据处理 不使用缓存

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

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

标签:缓存,循环,asp

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

<% 
'//数据处理部分 
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 
%> 

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com