<!--#include file="conn.asp" --> <% Set rs = Server.CreateObject ("ADODB.Recordset") sql = "Select * from cnarticle order by cn_id desc" rs.Open sql,conn,1,1 %> <% page=request.querystring("page") 'page值为接受值 rs.PageSize = 2 '每页显示记录数 rs.AbsolutePage = Page '显示当前页等于接收的页数 %> <% For i = 1 to rs.PageSize '利用for next 循环依次读出当前页的记录 if rs.EOF then Exit For end if response.write("<br>文章内容是:"& rs("cn_content")) rs.MoveNext next%> <% rs.close Set rs = Nothing conn.close set conn=nothing %> |
<% For i = 1 to rs.PageSize if rs.EOF then Exit For end if response.write("<br>文章内容是:"& rs("cn_content")) rs.MoveNext next%> |
新闻热点
疑难解答