469,621 Members | 1,678 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

[ASP.NET 2.0] Repeater control & paging, how??

Hey

ASP.NET 2.0

GridView have AllowPaging & PageSize for the letting the GridView span
multiple pages.

But is the same allowed on a Repeater control? I didn't see any properties
like AllowPaging or PageSize on the Repeater control, so I guess it isn't
possible? if it is possible maybe somebody here could give me a tip on how
it is done on a Repeater control?

Any Suggestions?

Jeff
Feb 27 '07 #1
2 2120
There is nothing in the repeater control for this. The GridView and DataGrid
were designed with paging in mind. The Repeater was simply designed to allow
a datasource to be formatted with templated output. You would have to make
your own paging system, which could be a large pain depending upon the
database. SQL Server 2005 has some nice features that would let you limit a
resultset to certain rows (the RowNumber feature), but a lot of other
databases don't. You would then probably find it best to use a datatable as
you could pull certain rows out of it into another datatable and then bind
to the subset of data.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:uo*************@TK2MSFTNGP06.phx.gbl...
Hey

ASP.NET 2.0

GridView have AllowPaging & PageSize for the letting the GridView span
multiple pages.

But is the same allowed on a Repeater control? I didn't see any properties
like AllowPaging or PageSize on the Repeater control, so I guess it isn't
possible? if it is possible maybe somebody here could give me a tip on how
it is done on a Repeater control?

Any Suggestions?

Jeff

Feb 27 '07 #2
Check out the paged datasource.

http://www.sitepoint.com/article/asp...ageddatasource
Mar 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mark | last post: by
12 posts views Thread by Alex D. | last post: by
20 posts views Thread by John Rivers | last post: by
1 post views Thread by ratnakarp | last post: by
reply views Thread by shamirza | last post: by
3 posts views Thread by NullQwerty | last post: by
2 posts views Thread by Mick Walker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.