Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Repeating content in master pages

Reply
Thread Tools

Repeating content in master pages

 
 
Vrlvrox
Guest
Posts: n/a
 
      11-27-2008
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
--------------------------
Row1 Col1 | Row1 Col2
--------------------------
Row2 Col1 | Row2 Col2

v.

 
Reply With Quote
 
 
 
 
Nathan Sokalski
Guest
Posts: n/a
 
      11-27-2008
I don't believe it is, the best way to achieve that would probably be to use
a repeater in the content page.
--
Nathan Sokalski
http://www.velocityreviews.com/forums/(E-Mail Removed)
http://www.nathansokalski.com/

"Vrlvrox" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> --------------------------
> Row1 Col1 | Row1 Col2
> --------------------------
> Row2 Col1 | Row2 Col2
>
> v.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
master pages and content pages sjsean ASP .Net 1 08-01-2009 08:40 PM
word content inside asp.net master / content pages jobs ASP .Net 1 12-13-2006 05:10 PM
Master Pages and content pages in subfolder vikramp ASP .Net 3 10-13-2006 07:07 PM
limit on number of content placeholders(which are editable in content pages) in master page nemesis.saurabh@gmail.com ASP .Net 0 05-25-2006 04:44 AM
Cross Page Post Back When Using Mixture of Master Pages and Non-Master Pages Jason@webbit.com ASP .Net 1 05-16-2006 02:00 PM



Advertisments