Repeating content in master pages

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
 
N

Nathan Sokalski

I don't believe it is, the best way to achieve that would probably be to use
a repeater in the content page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top