在asp.net開發(fā)中,循環(huán)導(dǎo)入導(dǎo)出數(shù)據(jù)必須要進行處理,下面是錯新技術(shù)頻道小編為大家?guī)淼?a target="_blank">ASP 循環(huán)導(dǎo)入導(dǎo)出數(shù)據(jù)處理 不使用緩存,希望對你有所幫助。
<%
'//數(shù)據(jù)處理部分
dim Content,Num,I,strCodea
I=request("I")
If len(I)=0 then I=0
Response.write "<br><div align=center>該程序目前已經(jīng)循環(huán)處理了"&I&"次數(shù)據(jù)</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
%>
以上就是錯新技術(shù)頻道小編介紹的ASP 循環(huán)導(dǎo)入導(dǎo)出數(shù)據(jù)處理 不使用緩存,相信認真看完的朋友都已經(jīng)懂了,大家可以分享給其他朋友們學(xué)習哦。
新聞熱點
疑難解答