473,725 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1366

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1495
by: russ.haley | last post by:
Threading and suspend I have an application that will load x number of "communicators". These "communicators" start up a communications channel with another application(of no importance). The initial code loaded the object model and then initialized the communications on the same thread, which took a lot of time. It took a minute plus to load four or five communicators. I found that if I can move the communications loading to another...
6
1733
by: varois83 | last post by:
Hi I am currently learning the faux columns technique from various tutorials but none of them tells me how to create a 774 px band in 3 colors in photoshop. I understand I can create 3 individual GIF's for each column but the tutorial I am really focusing on does one band only with the 3 colors. I understand the technique but don't know how to create let's say a 774px wide band with Blue (200px) White(374px) and Red(200px). This might...
5
2713
by: dhull | last post by:
I have two sites that use the faux column background CSS technique. Both sites were built from the same CSS foundation with a wrapper DIV that has a background set and contains header, left, center and right DIVs. Everything works fine in IE but the background stops halfway down in Firefox. I've heard that floated elements require different CSS to accomplish this, but all the explanations I've found say that the solution is to use the faux...
12
2401
by: not_a_commie | last post by:
Is using System.Management in general a faux pas? It seems, after some web searching, that there is a fair amount of resistance to it because of speed and portability. I need to know how many CPU sockets there are. I'm using System.Management to do this. It takes about two seconds to do this. (Which, yes, is full-on crap for speed.) But what is the better way to determine the number of CPU sockets in Windows version >= 5 with a .NET >=...
3
2619
by: Colin Walls | last post by:
I am stuck with a problem on a new site and would appreciate some help. The site is www.sallekiss.org.uk. If you look at it in FF you can see it has three columns with the two side columns being blue grey. This is done with faux columns. With IE 6 and 7 I don't get the left hand blue grey column. However if you choose one of the subsidiary pages, e.g. the "New to Fencing" page you can see that I eliminate the right hand column and the...
4
1675
by: TamusJRoyce | last post by:
Looking at various Holy Grail techniques for html layouts, I came across Faux Positioning Layout. What I'm curious about is the differences between the two. I have no understanding of the Holy Grail, but have a working implementation of Faux Positioning (which may be a bit harder to do than the Holy Grail). Both are compatible among various browsers, but are they really both the same thing? They both have negative margin-left css values,...
14
3312
by: Fistro | last post by:
I'm trying to find a design that would allow me to build web pages without having to worry about compatibility issues (not too much, in any case,,,) I've came across this CSS layout technique: http://alistapart.com/articles/fauxabsolutepositioning It calculates the left offset from a fixed position, as opposed to calculating it from the right edge of the preceding element by using a combination of position: relative, left: 100% and a...
0
8882
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8749
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9398
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8080
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6007
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4507
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3216
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2153
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.