繁体中文
设为首页
加入收藏
当前位置:ASP技术首页 >> ASP基础 >> 在asp中通过getrows实现数据库记录分页的一段代码,希望对大家有用

在asp中通过getrows实现数据库记录分页的一段代码,希望对大家有用

2006-04-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:(iOffset + iStart) Then iStop = iOffset + iStart - 1 Else iStop = iRows End If For iRowLoop = iStart to iStop For iColLoop = 0 to iCols Response.Write aResults(iColLoop, iRowLoop) & " " Next Respo...

(iOffset + iStart) Then

iStop = iOffset + iStart - 1

Else

iStop = iRows

End If

For iRowLoop = iStart to iStop

For iColLoop = 0 to iCols

Response.Write aResults(iColLoop, iRowLoop) & " "

Next

Response.Write "

"

Next

Response.Write "

"

if iStart > 0 then

'Show Prev link

Response.Write "ASP?Start=" & iStart-iOffset & _

"&Offset=" & iOffset & """>Previous " & iOffset & ""

end if

if iStop Next " & iOffset & ""

end if

%>

责任编辑:admin
相关文章