欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp下計(jì)算分頁的幾種方法

 更新時(shí)間:2008年03月03日 20:38:46   作者:  
asp分頁計(jì)算代碼
<%
    '計(jì)算分頁的幾種方法 

    '// iRecordCount為要計(jì)算的頁面總數(shù)
    '// iRecordCount為記錄集數(shù)
    '// iPageSize為每頁記錄數(shù)

    '// 一:
    If iRecordCount Mod iPageSize = 0 Then
        iPageCount = Int(iRecordCount / iPageSize)
    Else
        iPageCount = Int(iRecordCount / iPageSize) + 1
    End If
    '// 二:
    iPageCount = Int(iRecordCount / iPageSize * -1) * -1
    '// 三:
    iPageCount = Abs(Int( - (iRecordCount / iPageSize)))
    '// 四:
    iPageCount = Fix(iRecordCount / iPageSize) - CInt(CBool(iRecordCount Mod iPageSize))
%>

相關(guān)文章

最新評論