Hi everyone! Please help!! The paging through records is fine, but it keeps counting through all the pages!! I want to show only 10 pages at a time. I thought i just had to change the iPageCount to 10, but that didn't work =(
Please help me ASAP!! I was gonna try to fix this, but we had problems with our webserver, so i had to take care of that. And all these other things keep coming up!! Thanks in advance for your help guys!!
Code:
If iPageCurrent > 1 Then
Response.Write " <TD><A HREF=""index.asp?page=" & iPageCurrent - 1 & "&sort=" & Request("sort") & """><IMG SRC=""images/prev.gif"" BORDER=""0"" ALIGN=""absmiddle""></A></TD>" & vbCrLf
End If
For I = 1 To iPageCount
If I = iPageCurrent Then
Response.Write "<TD STYLE=""font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12pt; font-weight: bold; color: #000000;"">" & I & "</TD>" & vbCrLf
Else
Response.Write " <TD><A HREF=""index.asp?page=" & I & "&sort=" & Request("sort") & """ STYLE=""font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12pt; font-weight: bold; color: #FF9966; text-decoration: none;"">" & I & "</A></TD>" & vbCrLf
End If
Next 'I
If iPageCurrent < iPageCount Then
Response.Write "<TD><A HREF=""index.asp?page=" & iPageCurrent + 1 & "&sort=" & Request("sort") & """><IMG SRC=""images/next.gif"" BORDER=""0"" ALIGN=""absmiddle""></A></TD>" & vbCrLf
End If
Please help me ASAP!! I was gonna try to fix this, but we had problems with our webserver, so i had to take care of that. And all these other things keep coming up!! Thanks in advance for your help guys!!