for the last few weeks i'm trying to do asp array datagrid into array paging
i'll try my best shorts but i cann't make it any solution ?
but it has to be
iPageSize = 10 'Change able pages or
per page is 10 & then next page is10 then rest of item ?
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>paging</title>
- </head>
- <body>
- <%
- Dim I, iPageSize
- iPageSize = 20 'Change pages
- Dim arrPhotoNames
- arrPhotoNames = Array("1", "2", "3", "4", _
- "5", "6", "7", "8", _
- "9", "10", "11", "12", _
- "13", "14", "15", "16",_
- "17", "18", "19", "20", _
- "21", "22", "23", "24", "25")
- %><table border="1" ><tr><%
- For I = LBound(arrPhotoNames) To UBound(arrPhotoNames)
- %><td align="center"><%
- Response.Write arrPhotoNames(I)
- %></td><%
- If I Mod 5 = 4 Then
- %></tr><tr><%
- End If
- Next 'I
- %>
- </tr>
- </table>
- </body>
- </html>