473,394 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP Paging using array ?

Fary4u
273 100+
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 ?
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>
Aug 20 '07 #1
4 3192
Fary4u
273 100+
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 ?
Aug 21 '07 #2
Fary4u
273 100+
any body now about that ?
Aug 21 '07 #3
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.
Sep 8 '07 #4
Fary4u
273 100+
Hi Merlin thx for you reply
can you please give me some solution about this ?
Thanks in advance
Oct 24 '07 #5

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

Similar topics

0
by: RelaxoRy | last post by:
I have results being displayed each with its own checkbox name "selected" and value "id". When someone checks a checkbox, and then continues to page through the data (mysql select), I want that...
4
by: david | last post by:
Hi I have written code in ASP for paging records from the database (SQL Server 2000). The real problem I have around 10,000 records and it tries to fetch all the records everytime (I'm saying...
0
by: ck388 | last post by:
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update...
2
by: Mark | last post by:
I am attempting to build a repeating list using a repeater control. I want to add a checkbox to each item (line) and 'Select All' and 'Clear All' buttons. I have figured out how to do this...
6
by: Shawn | last post by:
Hi. I already have a datagrid where I'm using paging. I have a stored procedure that fills a temp table with 200-500 rows and then sends back 10 records at the time. When I go to page 2 the SP...
0
by: anonieko | last post by:
This approach I found very efficient and FAST when compared to the rowcount, or Subquery Approaches. This is before the advent of a ranking function from DB such as ROW_NUMBER() in SQL Server...
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
2
Fary4u
by: Fary4u | last post by:
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...
3
osward
by: osward | last post by:
Hi, everyone, I had managed to make use of the date link from a simple calendar script to my query table. When I click on the date's link or Prev and Next Month link, The table first row will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.