<%
'Beberapa cara untuk menghitung paging
'// irecordcount adalah jumlah total halaman yang akan dihitung
'// irecordcount adalah jumlah rekaman
'// iPagesize adalah jumlah catatan per halaman
'//satu:
IfrecordcountModipageSize = 0then
ipagecount = int (irecordcount/ipagesize)
Kalau tidak
ipagecount = int (irecordcount/ipagesize) +1
Endif
'//dua:
ipagecount = int (irecordcount/ipagesize*-1)*-1
'//tiga:
ipagecount = abs (int (-(irecordcount/ipagesize))))
'// Empat:
ipagecount = fix (irecordcount/ipagesize) -cint (cbool (irecordcountModipageSize)))
%>
Artikel yang mungkin menarik bagi Anda:
ASP paging class (supports multi-style transformation) A thorough understanding of ASP paging technology A detailed analysis of asp paging (2 paging programs organized by yourself) Yixin asp paging class v1.0 asp paging generates HTML program script code thoroughly mastering ASP paging technology A class of asp paging simple ASP paging code (test correctly) A little experience of flash and asp paging and flash script js implementing ASP paging function HTML Paging Function Leaf Asp Paging Class Beberapa algoritma untuk menghitung jumlah total halaman saat paging ASP