- <%
- '//数据处理部分
- 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.sditi.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
- %>
ASP循环导入导出数据处理 不使用缓存
最新推荐文章于 2021-08-05 18:53:13 发布
本文介绍了一段使用 ASP.NET 进行数据处理和字符串替换的脚本代码。该脚本从数据库中读取特定记录,并检查内容字段是否包含指定字符串。如果找到,则进行相应的替换操作,最终更新数据并展示处理进度。

167

被折叠的 条评论
为什么被折叠?



