V
Vrlvrox
Hello
I'm just starting with master pages and content placeholders and I can't
seem to find a way to have 'repeating content'.
Is something like this even posible?
Here's an example of what I mean (in pseudo tags):
master:
<table>
<tr><th>col1</th><th>col2</th></tr>
<asp:repeating content placeholder id="rcp">
<tr><td><asp:ContentPlaceHolder id="col1"
/></td><td><asp:ContentPlaceHolder id="col2" /></td></tr>
</asp:repeating content placeholder>
</table>
page with content substitution:
<asp:repeating content placeholder="rcp">
<asp:Content ContentPlaceHolderID="col1">Row 1 Col1</asp:Content>
<asp:Content ContentPlaceHolderID="col2">Row 1 Col2</asp:Content>
</asp:repeating content>
<asp:repeating content placeholder="rcp">
<asp:Content ContentPlaceHolderID="col1">Row 2 Col1</asp:Content>
<asp:Content ContentPlaceHolderID="col2">Row 2 Col2</asp:Content>
</asp:repeating content>
final result:
col1 | col2
I'm just starting with master pages and content placeholders and I can't
seem to find a way to have 'repeating content'.
Is something like this even posible?
Here's an example of what I mean (in pseudo tags):
master:
<table>
<tr><th>col1</th><th>col2</th></tr>
<asp:repeating content placeholder id="rcp">
<tr><td><asp:ContentPlaceHolder id="col1"
/></td><td><asp:ContentPlaceHolder id="col2" /></td></tr>
</asp:repeating content placeholder>
</table>
page with content substitution:
<asp:repeating content placeholder="rcp">
<asp:Content ContentPlaceHolderID="col1">Row 1 Col1</asp:Content>
<asp:Content ContentPlaceHolderID="col2">Row 1 Col2</asp:Content>
</asp:repeating content>
<asp:repeating content placeholder="rcp">
<asp:Content ContentPlaceHolderID="col1">Row 2 Col1</asp:Content>
<asp:Content ContentPlaceHolderID="col2">Row 2 Col2</asp:Content>
</asp:repeating content>
final result:
col1 | col2