%
Dim Page
Dim PageSize
Dim AbsolutePosition
PageSize = 5
set conn = GetSQLServerConnection()
SQL = "Select * from ValentineMsgBoard order by PostDate desc"
set rs = GetSQLServerRecordset( conn, SQL)
rs.PageSize = PageSize
If Request("Page") = "" or CInt(Request("Page")) < 1 then
Page = 1
AbsolutePosition = 1
ElseIf CInt(Request("Page")) > rs.PageCount then
Page = rs.PageCount
AbsolutePosition = ((Page-1) * 5) + 1
Else
Page = Request("Page")
AbsolutePosition = ((Page-1) * 5) + 1
End If
%>
Youth-2000.com [Teen天情人節]
<% Function Formatnumber(num)
If CInt(num) < 10 Then
FormatNumber = "0" & num
Else
FormatNumber = num
End If
End Function
%>