How to limit number of rows in Repeater

T

TomislaW

I need to show 5 rows and put link for more..
where and how to put this limit?
on item data bound or else?
 
T

TomislaW

it is not simple like that
i have 2 repeaters one inside other
with one select i binding two arraylists for the repeaters
recordset is something like this:
1 2 2 2 2
1 3 3 3 3
1 4 4 4 4
2 1 1 1 1
2 2 2 2 2
....
First repeater is based on the first column
If I put top 5 in the select I will get only two rows in the first repeater,
but i need to limit second repeater on just 5 rows.
 
E

Eliyahu Goldin

I still think this sort of things should be done on select stage. May be you
should consider using only one repeater bound to one joined recordset. You
can use select with outer join for that. Then select top 5 will do the job.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top