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

Dynamic Repeater Control

Hello All,
I have 2 tables in my sql database, a table that holds different years
(ex, 2003,2004,2005,2006) and then another table that holds newsletter
information and the year is a foreign key to the year table (ex,
NewletterTitle,NewsletterfileName,Year)

What i want to do is dynamically show the content on the ASPX page like
so:

2005
newsletter1
newsletter2
newsletter3

2004
newsletter1

2003
newsletter1
newsletter2

or even better like this:

2004 2005
newsletter newsletter

2002 2001
newsletter newsletter
I'm not exactly sure if i can do this dynamically, i tried selecting
all of the year records out of the database and loop through those
while selecting all of the relevant records from the newsletter table
using the year data from the year table and then somehow adding this to
a repeater dynamically to display the results. Is this
understandable??? Can this be done dynamically??

Thanks,
Erin

Nov 8 '06 #1
1 1694
Don't know exactly what part you wanna do dynamically, but if you check out:
http://openmymind.net/index.aspx?documentId=8#7

it explains how to do nested bindings...I'm pretty sure it's what you'll be
looking for...

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
<er************@cowaninsurancegroup.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.com...
Hello All,
I have 2 tables in my sql database, a table that holds different years
(ex, 2003,2004,2005,2006) and then another table that holds newsletter
information and the year is a foreign key to the year table (ex,
NewletterTitle,NewsletterfileName,Year)

What i want to do is dynamically show the content on the ASPX page like
so:

2005
newsletter1
newsletter2
newsletter3

2004
newsletter1

2003
newsletter1
newsletter2

or even better like this:

2004 2005
newsletter newsletter

2002 2001
newsletter newsletter
I'm not exactly sure if i can do this dynamically, i tried selecting
all of the year records out of the database and loop through those
while selecting all of the relevant records from the newsletter table
using the year data from the year table and then somehow adding this to
a repeater dynamically to display the results. Is this
understandable??? Can this be done dynamically??

Thanks,
Erin

Nov 8 '06 #2

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

Similar topics

1
by: Steve Gadlin | last post by:
Hi there! First off, let me apologize for the basic question... I'm very new to .NET programming. I'm building a web site using VB.NET, and am trying to include several custom user controls. ...
2
by: theComputer7 | last post by:
I cut down the code to make this half way understandable... I have read Data Grid girls caution about over use of dynamic controls. I truly believe what I am doing requires dynamically inserted...
3
by: Chad THomas | last post by:
I have a data repeater controll on a page. in each row that is displayed, I would like to have an action column that has differnet links shown depending on certain criteria from the database. In...
0
by: Pat Sagaser via .NET 247 | last post by:
I'm trying to add LinkButtons to a Repeater control using adynamic template. The docs state that you should be able tobubble the click event to the containing Repeater. There areplenty of examples in...
5
by: Matt Jensen | last post by:
Am I right in saying that you can't have a Radiobutton web control inside a repeater bound to a database datasource and (inline) dynamically set it's ID and text properties from the repeaters rows?...
3
by: Colin | last post by:
Hello, I can manage quite well in ASP but would like some advice in the best way to achieve dynamic layout in ASP.NET and still keep the page and code separate. Let's say I already have a...
1
by: Bobstar | last post by:
Hello Im trying to develop a nested repeatertemplate, Im trying to create a template in the following way: Repeater r = new Repeater(); r.ID = "Repeater0"; // r.HeaderTemplate = new...
4
by: TS | last post by:
I am creating a User control and i create some dynamic controls in the init handler. one of the controls is a custom validator which i assign a serverValidate event handler. I usally always do my...
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...
3
by: s.bussing | last post by:
Hi, I have been reading for hours now, but I'm still not able to solve my problem, though a lot of people are struggling with something similar. On my page I have a nested repeater. In the inner...
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?
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:
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
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,...

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.