473,386 Members | 1,841 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,386 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 3191
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.