All I can suggest is that you look into a nesetd repeater (search at google.com).
Can I also suggest you hava look at the GotDotNETMenuSorce available at www.gotdotnet.com
This latter will show you how to add repeaters(or controls) in a loop. It is NOT a nested repeater, but you can so some stuff with it in the meantime. It will teach you how to use FindControl and its possible drawbacks.
Basically .... you need to control your aspx page from the code behind, adding the controls by code.
You names of your controls as would come from your database I shall refer to as CName1,2,3,4,5, and the code would be something like
sya db dished out dataset and refer to it as dr["controlname"]
FillPage(){
if (dr["controlname") = CName1 {
Control1 c1 = new Control1();
c1 = (Control1)LoadControl("sunfolder/control1.ascx");
this.Controls.Add(menuSection);
}
if (dr["controlname") = CName1 {
Control1 c1 = new Control1();
c1 = (Control1)LoadControl("sunfolder/control1.ascx");
this.Controls.Add(menuSection);
}
if (dr["controlname") = CName1 {
Control1 c1 = new Control1();
c1 = (Control1)LoadControl("sunfolder/control1.ascx");
this.Controls.Add(menuSection);
}
}
}