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

Can the nesting of Repeater Controls cause problems?

Hi all,
I have a page that displays the contents of a business document in HTML that
uses multiple select queries to provide the relevent data. There is a call
to the parent table and then multiple calls to related child tables. The
selects that return multiple rows (details) I have placed in Repeater
controls within the table that I use for formatting.

I now face the task of producing multiple documents on the same page
depending on a user's selection. The number of docunts is determined at
runtime.

I have 2 ideas in mind:

1. Placing the entire document table structure within a Repeater (I don't
know if that is even feasible), thus the question about nesting repeaters.

2. Dynamically loading user controls and populating their fields as they are
loaded. The UserControl would represent one of the documents.

Can anyone comment on what might be the better path to take before I head
down a blind alley? I can envision option 2 as being easier to handle in a
more linear fashion...Load the user control then call the Data populating
subs.

The other question is, can I declare the ID of the control when it's added?
I haven't seen that option in the documentation. Or should I just go with
the default naming which I believe is UserControlName1, UserControlName2
....etc?

Thanks for any input....
May 21 '07 #1
2 1237
Ok, I can see I am being castigated from the group for using vulgar
language.
"The number of docunts is determined at runtime."
I suppose I should learn how to type and stop thinking out-loud on a
newsgroup...especially early on a Monday morning.

Ta...
"John Kotuby" <jo***@powerlist.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Hi all,
I have a page that displays the contents of a business document in HTML
that uses multiple select queries to provide the relevent data. There is a
call to the parent table and then multiple calls to related child tables.
The selects that return multiple rows (details) I have placed in Repeater
controls within the table that I use for formatting.

I now face the task of producing multiple documents on the same page
depending on a user's selection. The number of docunts is determined at
runtime.

I have 2 ideas in mind:

1. Placing the entire document table structure within a Repeater (I don't
know if that is even feasible), thus the question about nesting repeaters.

2. Dynamically loading user controls and populating their fields as they
are loaded. The UserControl would represent one of the documents.

Can anyone comment on what might be the better path to take before I head
down a blind alley? I can envision option 2 as being easier to handle in a
more linear fashion...Load the user control then call the Data populating
subs.

The other question is, can I declare the ID of the control when it's
added? I haven't seen that option in the documentation. Or should I just
go with the default naming which I believe is UserControlName1,
UserControlName2 ...etc?

Thanks for any input....

May 21 '07 #2
Hi all...

For anyone that is interested I chose option:

2. Dynamically loading user controls and populating their fields as they are
loaded. The UserControl would represent one of the documents.

This works like a charm as long as I provide a container such as a panel or
placeholder. Each of the User Controls accepts a single public property
value from the calling page and then proceeds to load its child controls
with the proper data after the call to container.AddControl().

"John Kotuby" <jo***@powerlist.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Hi all,
I have a page that displays the contents of a business document in HTML
that uses multiple select queries to provide the relevent data. There is a
call to the parent table and then multiple calls to related child tables.
The selects that return multiple rows (details) I have placed in Repeater
controls within the table that I use for formatting.

I now face the task of producing multiple documents on the same page
depending on a user's selection. The number of docunts is determined at
runtime.

I have 2 ideas in mind:

1. Placing the entire document table structure within a Repeater (I don't
know if that is even feasible), thus the question about nesting repeaters.

2. Dynamically loading user controls and populating their fields as they
are loaded. The UserControl would represent one of the documents.

Can anyone comment on what might be the better path to take before I head
down a blind alley? I can envision option 2 as being easier to handle in a
more linear fashion...Load the user control then call the Data populating
subs.

The other question is, can I declare the ID of the control when it's
added? I haven't seen that option in the documentation. Or should I just
go with the default naming which I believe is UserControlName1,
UserControlName2 ...etc?

Thanks for any input....

Jun 4 '07 #3

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

Similar topics

8
by: Invalidlastname | last post by:
Hi, We are developing an asp.net application, and we dynamically created certain literal controls to represent some read-only text for certain editable controls. However, recently we found an issue...
4
by: Harry | last post by:
Hello, I have a Repeater control that contains a Label control inside its ItemTemplate. A dummy mockup of the HTML code looks as follows: <asp:repeater id="StyleRepeater" Runat="server">...
4
by: Brad Baker | last post by:
I'm going a little crazy :) I'm trying to bind a repeater control to a dataset on page load using the following code: if (Request.QueryString != null) { string customerid = Request.QueryString;...
1
by: Smokey Grindle | last post by:
Is it possible to nest a repeater? I want to list a list of items, then inside each one of those items, put a list of its sub items so basically the parent repeater has a child repeater per row...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
5
by: Brad Baker | last post by:
I am trying to make a "tabbed" interface by iterating through a dataset with a conditional statement. For example: ...
4
by: John Kotuby | last post by:
Hi all, I am using a Repeater in conjunction with a SQLDatasource and SQL Server. One of the controls in the repeater is a HyperlLink as follows: <asp:HyperLink...
7
by: Brad Baker | last post by:
I am trying to programmatically set a placeholder control in csharp which is nested inside a repeater control between <ItemTemplateand </ItemTemplate> tags, however I am running into problems. I've...
15
by: | last post by:
I dynamically create controls (textboxes) in a repeater control. I know their names (eg. TextBox1). How do I find the text of TextBox1 in the Form? FindControl does not seem to work.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.