473,386 Members | 1,720 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,386 software developers and data experts.

Nested Repeater - OnItemDataBound - Slow Speed

Hi,

I have a nested repeater. For each row in the parent repeater there is a
child repeater with several rows of data.

The way I'm doing this is throught ItemDataBound Event. So for each Row in
parent repeater, when its ItemDataBound event is raised I grab the content of
the child repeater and DataBind it.

This makes the page load slower if there is more data.

What can I do to speed up the speed of page?

Thanks for your help.
Aug 10 '06 #1
2 3953
oooops

the (faux) blog is

spaces.msn.com/sholliday/
"mavrick_101" <ma********@discussions.microsoft.comwrote in message
news:00**********************************@microsof t.com...
Hi,

I have a nested repeater. For each row in the parent repeater there is a
child repeater with several rows of data.

The way I'm doing this is throught ItemDataBound Event. So for each Row in
parent repeater, when its ItemDataBound event is raised I grab the content
of
the child repeater and DataBind it.

This makes the page load slower if there is more data.

What can I do to speed up the speed of page?

Thanks for your help.

Aug 10 '06 #2

Are you using a DataSet (non or strong typed) .. and you do a .Select to get
the children (or perhaps use the relationship name?)

I'm sure, but lets say you have Orders (parent) and OrderDetails (children)

If you create a OrderCollection (from CollectionBase in 1.1 or a generic in
2.0 ) , and put Order (objects) in that collection
~and you have a Order.Details sub collection (where OrderDetailCollection
is a collection of OrderDetails ) ..

What I'm getting at .. is that if you objects are "pre children-ized",
perhaps it would be faster.

check my blog, I have 1.1 and 2.0 code for creating CollectionBase (1.1) and
a <Listin 2.0.

My theory is that if you pre-childrenize, and avoid the DataSet.Select or
DataSet.GetChildren("myrelationshipname") (sp?)... then it might be faster.

It depends on how motivated you are to setup that test scenario.


"mavrick_101" <ma********@discussions.microsoft.comwrote in message
news:00**********************************@microsof t.com...
Hi,

I have a nested repeater. For each row in the parent repeater there is a
child repeater with several rows of data.

The way I'm doing this is throught ItemDataBound Event. So for each Row in
parent repeater, when its ItemDataBound event is raised I grab the content
of
the child repeater and DataBind it.

This makes the page load slower if there is more data.

What can I do to speed up the speed of page?

Thanks for your help.

Aug 10 '06 #3

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

Similar topics

3
by: Duncan Welch | last post by:
I have a strongly typed dataset that returns two tables - "items" and "itemdetails". In the strongly-typed dataset designer, I've created a link (relationship) between the two tables based on a...
2
by: Stephen Miller | last post by:
I am using the OnItemDataBound event of Repeater control to nest a DataGrid within the Repeater. When I attempt to bind to the DataGrid using the DataSource method I get the error message "Object...
3
by: Eirik Eldorsen | last post by:
Im trying to make a nested repeater with 3 levels. I've successfully created a nested repeater with 2 levels, but when adding the 3rd level I get an InvalidCastException. What am I doing wrong? ...
3
by: sorCrer | last post by:
Hi All, Posted after extensive searching! I have a nested repeater control as follows: (Simplified ;-)) <table> <asp:repeater id=parent onItemDataBound=createChild> <tr><td>Level...
1
by: jeremystein | last post by:
With nested repeaters, how can I access the outer repeater's DataItem from the inner repeater? Here's a snippet from my aspx: <asp:repeater id="OuterRepeater" runat="server"...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
0
by: Adam Knight | last post by:
Hi All, I have a repeater control nested inside another repeater control. The nested (child) repeater control, is bound to an object data source. My problem is, i need to send a data item...
2
by: ASF | last post by:
Hey all, I have a gridview which pulls from a BLL which pulls from a DAL (an .XSD file). Each row on that gridview has a nested repeater which pulls from another table. The code which populates...
3
by: Leon Mayne | last post by:
If I have a datatable which looks like this: Record Id, Group Id, Name 1, 1, Test 1 2, 1, Test 2 3, 2, Test 3 4, 3, Test 4 Is it possible to use nested repeaters to group the information by...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.