Dies ist die ASP -Paging -Liste, um statische Seiten zu generieren und das ASP -Applet -Skript zu erhalten
Die Codekopie lautet wie folgt:
<!-#includeFile = "conn.asp"->
<html> <Head> <titels> Paginationstest </title> <linkhref = "inc/style.css" Typ = text/cssrel = stylesheet> </head>
<%strhead = strhead & "<html>"
STRHEAD = STRHEAD & "<HEAD>"
STRHEAD = STRHEAD & "<Titels> Paginationstest </title>"
STRHEAD = STRHEAD & "<LINKHREF =" "Inc/style.css" "Typ = text/cssrel = stylesheet>"
STRHEAD = STRHEAD & "</head>"
%>
<%
SQL = "Ausgewählte*FromNews"
setrs = server.createObject ("adodb.recordset")
Rs.opensql, Conn, 1,1
%> <%
Rs.PageSize = 2
TotalPage = Rs.PageCount
rs.close
setrs = nichts
FORJ = 1TOTOTALPAGE
SQL = "Ausgewählte*FromNews"
setrs = server.createObject ("adodb.recordset")
Rs.opensql, Conn, 1,1
Welche Seite = j
Rs.PageSize = 2
TotalPage = Rs.PageCount
Rs.Absolutepage = Welche Seite
Howmanyrecs = 0
%> <%
STR0 = ""
STR0 = str0 & "</p>"
STR0 = STR0 & "<TableBgColor =#CecfceAlign = centerBorder = 0Width = 800Cellpadding = 2Cellpacing = 1>"
%> <%
dowhilenotrs.eofandhowManyrecs <rs.pageSize
%> <%
STR0 = STR0 & "<trbgcolor =#f7f7f7>"
str0 = str0 & "<tdbgcolor =#f7f7f7align =" "center" ">" & rs (0) & "</td>"
str0 = str0 & "<tdbgcolor =#f7f7f7align =" "center" ">" & rs (1) & "</td>"
str0 = str0 & "<tdbgcolor =#f7f7f7align =" "center" ">" & rs (2) & "</td>"
str0 = str0 & "<tdbgcolor =#f7f7f7align =" "center" ">" & rs (3) & "</td>"
STR0 = STR0 & "</tr>"
%> <%
Rs.Movenext
Howmanyrecs = Howmanyrecs+1
Schleife
rs.close
setrs = nichts
%> <%str0 = str0 & "</table>"
%> <%
'Pagination Abschnitt
Ref = "" "
Ref = Ref & "<br>"
Ref = Ref & "<tableBgColor =#cecfcealign = centerBorder = 0Width = 800Cellpadding = 0CellSpacing = 1>"
Ref = Ref & "<trbgcolor =#f7f7f7>"
Ref = Ref & "<td>"
Ref = Ref & "<b> Seiten:" & j & "/" & TotalPage & "</b>"
Ref = Ref & "</td>"
Ref = Ref & "<td>"
Ref = Ref & "<Ahref = list_1.html" & ">" & "<fontface = webdings> 9 </font>" & "</a>" ""
Wenn welchePage = 1Then
Ref = Ref & "<fontface = webdings> 7 </font>"