Статья: Объект Recordset и текстовые файлы ASP
End If
For i = 1 to nPages
If i = 1 then
Response.Write " | "
End If
If i = Page then
Response.Write i & " | "
Else
Response.Write "<a href=""" & Request("script_name") & "?Page=" & i & """>" & i & "</a> | "
End If
Next
If Page <> nPages then
Response.Write "<a href=""" & Request("script_name") & "?Page=" & Page + 1 & """>></a>"
Else
Response.Write ">"
End If
Response.Write "</td></tr>"
End If
Response.Write "</table>"
rs.Close
Set rs = Nothing
%>
Пример работы скрипта: