that is so ugly, mixed content with html, who is going to maintain that?
retrieve the data in a dataset, create relations between them, then use nested controls approach, for example, see
HOW TO: Display Hierarchical Data by Using Nested Repeater Controls and Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;326338