ASP 分页时计算页面总数的几种算法

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

' HTMer_RecordCount为要计算的页面总数
' HTMer_RecordCount为记录集数
' HTMer_PageSize为每页记录数
If HTMer_RecordCount Mod HTMer_PageSize=0 Then
    HTMer_PageCount=Int(HTMer_RecordCount/HTMer_PageSize)
Else
    HTMer_PageCount=Int(HTMer_RecordCount/HTMer_PageSize)+1
End If