469,645 Members | 1,706 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Faux-paging with my datalist, visibility, and XmlDataSource?

I'm interested in paging a ASP.NET datalist. The ASP.NET datalist control
does not natively support paging.

I am binding an XmlDataSource (which is populated by entries in the
filesystem) to the my datalist control. The output is several hundred images
in a tabular view. I would like to limit the number of images to perhaps 50
per page.

There are various articles on the web that describe how to custom-implement
paging with datalist controls, but they tend to use SQLDataSource as a
starting point. SqlDataSource supports methods that as near as I can tell,
XmlDataSource does not. I probably need to find another way.

I was wondering if I could simply implement "fake" paging either using
ASP.NET's ability to manipulate visiblity server-side on rows, or perhaps a
similar tactic that involved AJAX. The number of records I'm dealing with is
not huge and keeping the entire collection of records in memory should not
be problematic.

If I take a non-AJAX approach, I need to know the C# syntax of how I could,
say, designate rows X through XX on the datalist as visible, and all other
rows invisible. I also need to know at what point in the page lifecycle this
manipulation needs to happen.
Jun 29 '07 #1
0 1255

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by russ.haley | last post: by
6 posts views Thread by varois83 | last post: by
12 posts views Thread by not_a_commie | last post: by
3 posts views Thread by Colin Walls | last post: by
14 posts views Thread by Fistro | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.