469,902 Members | 1,813 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,902 developers. It's quick & easy.

ASP Array how do i make DataGrid into Paging ?

Fary4u
273 100+
Hi

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
  1. <html>
  2. <head>
  3. <title>paging</title>
  4. </head>
  5. <body>
  6.     <%
  7.     Dim I, iPageSize
  8.  
  9.     iPageSize = 20 'Change pages
  10.     Dim arrPhotoNames
  11.     arrPhotoNames = Array("1", "2", "3", "4", _
  12.                       "5", "6", "7", "8", _
  13.                       "9", "10", "11", "12", _
  14.                       "13", "14", "15", "16",_
  15.                       "17", "18", "19", "20", _
  16.                       "21", "22", "23", "24", "25")
  17.  
  18.  
  19.     %><table border="1" ><tr><%
  20.  
  21.  For I = LBound(arrPhotoNames) To UBound(arrPhotoNames)
  22.  
  23.         %><td align="center"><%
  24.         Response.Write arrPhotoNames(I)
  25.         %></td><%
  26.  
  27.         If I Mod 5 = 4 Then
  28.                 %></tr><tr><%
  29.             End If
  30.  
  31.  Next 'I
  32.     %>
  33.     </tr>
  34. </table>
  35. </body>
  36. </html>
  37.  
Thanks for you kindly reply in advance i'm waiting ?
Oct 1 '07 #1
2 1477
Fary4u
273 100+
Hi any body any reply ? i need to sort this as soon as possible.
Oct 1 '07 #2
jhardman
3,406 Expert 2GB
try
Expand|Select|Wrap|Line Numbers
  1. for i = LBound(arrPhotoNames) To LBound(arrPhotoNames)+9
  2.    ...
  3.    if i = UBound(arrPhotoNames) then exit for
  4. next
How do you think you will pass on the correct info to the "next" page?

Jared
Oct 2 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Joseph D. DeJohn | last post: by
2 posts views Thread by enak | last post: by
4 posts views Thread by Manny Chohan | last post: by
6 posts views Thread by Shawn | last post: by
2 posts views Thread by Axel Dahmen | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.