ASP Paging using array ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fary4u
    Contributor
    • Jul 2007
    • 273

    ASP Paging using array ?

    Hi

    is that posible to design asp paging

    but it has to be
    iPageSize = 20 'Change pages or
    per page is 10 & then next page is 20 then rest of item ?
    [code=asp]
    <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(arrPhoto Names) To UBound(arrPhoto Names)

    %><td align="center"> <%
    Response.Write arrPhotoNames(I )
    %></td><%

    If I Mod 5 = 4 Then
    %></tr><tr><%
    End If

    Next 'I
    %>
    </tr>
    </table>
    </body>
    </html>[/code]
    Last edited by jhardman; Aug 21 '07, 05:33 AM. Reason: put code in code tags, please use code tags in the future
  • Fary4u
    Contributor
    • Jul 2007
    • 273

    #2
    I've try to do this thing so many time i've done few thing but still not get my result which i'm trying to do so

    if any body know about this problem ?

    Comment

    • Fary4u
      Contributor
      • Jul 2007
      • 273

      #3
      any body now about that ?

      Comment

      • Merlin1857
        New Member
        • Sep 2007
        • 14

        #4
        I found a really good way of paging using temporary tables in SQL server returning it to ASP. The nice thing about it is the temp table only grabs the number of results you want and not the whole recordset each time. It works like a dream. If you want it let me know.

        Comment

        • Fary4u
          Contributor
          • Jul 2007
          • 273

          #5
          Hi Merlin thx for you reply
          can you please give me some solution about this ?
          Thanks in advance

          Comment

          Working...