473,406 Members | 2,387 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,406 software developers and data experts.

Using PagedDataSource to Page XML Data

Howdy,

Using .Net 2.0 I am using the PagedDataSource to page through my XML data
source. My question and / or problem is is this opening the XML data source
every time a user clicks through a page or is .Net smart enough to use the
same dataset from the first request? I researched a bit and found how to
cache a dataset, which would be great, and then specify a CacheDependency,
but my problem with this is that the XML data source is actually coming from
a database, IBM's Uniobjects, so I can't specify that as my dependency.

I guess my other option is to use OutputCache for the page itself, however
how do I specify to cache by current page? Everything I'm finding on caching
custom is with the Global.asax file, which I don't need here.

Thanks!!

--
David Lozzi
dlozzi@(remove)delphi-ts.com
www.delphi-ts.com
Jul 7 '06 #1
1 1794
David,

I think I asked this same question at the last VSLive conference in
Vegas. We had a SqlDataSource tied to a GridView and we set up
profiler to watch the sql statements execute. I am pretty sure that we
found that the SqlDataSource was pretty smart. (I would say the other
data sources follow suit) The SqlDataSource only went to get refreshed
data from the data store when we Updated/Deleted a record, not when we
paged or sorted.

In your case, you might have to figure a way to step through each call
to watch and see if it is selecting from the data store each time you
click a page.

HTH,
Chris

Jul 8 '06 #2

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

Similar topics

2
by: Fresh Air Rider | last post by:
Hi There are plenty of examples on the internet of using the PagedDataSource in conjunction with a dataset to implement paging within the Repeater control. Does anyone know if this is...
0
by: dinesh | last post by:
Trying to page results from a repeater. The resulting hyperlinks point o empty references when the page is run. No errors show up Private Sub Page_Load(ByVal sender As System.Object, ByVal e As...
0
by: wrytat | last post by:
I declare a PagedDataSource and make its data source be a arraylist that contains objects that I've created myself. Then I bind a Repeater with this PagedDataSource and an error occurs. The...
1
by: ratnakarp | last post by:
Hi, I have a search text box. The user enters the value in the text box and click on enter button. In code behind on button click i'm writing the code to get the values from the database and...
3
by: Franz | last post by:
Hi, If my ProjectTable contains a lot of rows, each time I call the following code, will all the rows be fetched? Or only those 5 records for that page are fetched only? /* -- code start --...
1
by: Fred Dag | last post by:
I want to get the database table ID of a row in a Repeater that uses a PagedDataSource when OnTexctChanged event is fired. It seems that the DataSource property isn’t persisted when the event is...
0
by: Eugene Anthony | last post by:
The problem with my coding is that despite removing the records stored in the array list, the rptPages repeater control is still visible. The rptPages repeater control displayes the navigation...
1
by: jazzart | last post by:
Hi there, I'm fairly new to programming with Asp.Net 2.0 so I'm finding myself regularly fumbling around in the dark a bit, so to speak. I'm currently using Visual Web Developer and have been...
1
by: Stimp | last post by:
In terms of performance/system resources/good practice, is it generally better to perform paging within an SQL query rather than paging a datasource that implements that query? In this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.