473,806 Members | 2,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3980
oooops

the (faux) blog is

spaces.msn.com/sholliday/
"mavrick_10 1" <ma********@dis cussions.micros oft.comwrote in message
news:00******** *************** ***********@mic rosoft.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 OrderDetailColl ection
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.GetChil dren("myrelatio nshipname") (sp?)... then it might be faster.

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


"mavrick_10 1" <ma********@dis cussions.micros oft.comwrote in message
news:00******** *************** ***********@mic rosoft.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
5443
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 foreign key. I want to put them into a nested repeater, but I'm having problems finding a "nice" way of doing it. Can someone please point me in the direction of a tutorial or best practice to achieve this?
2
3304
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 reference not set to an instance of an object". This error message commonly occurs when a server control is incorrecly declared, so naturally I have double checked this. To test this, I moved the aspx code for the DataGrid ('myNestedDataGrid')...
3
4044
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? Here is my code: <asp:Repeater id="level1Repeater" runat="server"> <itemtemplate>
3
4435
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</td></tr> <asp:repeater id=child>
1
10831
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" onItemDataBound="PrepareInner"> <ItemTemplate> <h1> <%# DataBinder.Eval(Container.DataItem, "number") %>
8
3032
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 way I'm going about doing this might be a little off. I'd appreciate some help. Below is the code I have thus far but I'm not sure how to reference the user control within the foreach loop. <asp:Panel ID="pnlRosterProfile" runat="Server" />
0
1759
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 value from the 'item' of parent control as a parameter to the object datasource of the child repeater control. Any thoughts on how to best do this? Declaritively?
2
2610
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 each nested repeater is shown below (it's in the gridview's RowDataBound event). My question is this: what can I do to speed up this process? Currently EVERY time a new gridview row is generated the code reaches out to the database, grabs the...
3
9469
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 GroupId? e.g. displaying something like
0
9719
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
9599
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
10624
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
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5546
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...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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

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.