Sometimes when doing an asp paging program, you will encounter situations where you cannot paginate, so you try to print rs.absolutepage but the result is always -1.
Here is a solution:
.....Omitted
rs.cursorlocation=3 'It is to add this line
rs.opensql,conn,3,2
rs.pagesize=10
ifnotrs.eofthen
rs.absolutepage=1
endif
pagecount=rs.pagesize
......Omitted
Articles that may be of interest to you:
Javascript css styleFloat and cssFloat Javascript special writing method css float attribute css cross-browser implementation of Float (float) in float:centerCSS articles Special writing method of operating the float attribute of css under javascript css position: absolute, relative, detailed explanation of some research on Positoin, absolute, and Relative in CSS positioning relative absolute solves the level problem that cannot be broken by Div CSS absolute and relative summary position: relative/absolute analysis of the level attribute of css float attribute and position:absolute