A
Allan Ebdrup
I have a nested repeater control, in ASP.Net 2.0 When I switch to design
view the nested repeater is not shown, is there a way to get the nested
repeater shown in design view? If not how do I ceate my own variant of a
repeater control with two sets of headers, items, and headers. That can show
a preview in design view?
The code:
<asp:Repeater ID="Repeater1" runat="server"
OnItemCommand="Repeater1_ItemCommand">
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>
Element</th>
<th>
Ret</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<asp:Repeater ID="Repeater2" runat="server">
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>
Ledetekst</th>
<th>
Værdi</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
Ledetekst</td>
<td>
Værdi</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</td>
<td>
[Edit]
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
view the nested repeater is not shown, is there a way to get the nested
repeater shown in design view? If not how do I ceate my own variant of a
repeater control with two sets of headers, items, and headers. That can show
a preview in design view?
The code:
<asp:Repeater ID="Repeater1" runat="server"
OnItemCommand="Repeater1_ItemCommand">
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>
Element</th>
<th>
Ret</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<asp:Repeater ID="Repeater2" runat="server">
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>
Ledetekst</th>
<th>
Værdi</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
Ledetekst</td>
<td>
Værdi</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</td>
<td>
[Edit]
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>