View Single Post
  #2 (permalink)  
Old March 18th, 2011, 08:25 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

This won't work as each bulleted list renders it's own set of items. What you could instead is use a nested Repeater and define controls for the title and the summary. Something like this should work:

<asp:Repeater ID="Repeater1" runat="server">
    <h3><asp:Literal ID="Literal1" runat="server" Text='<%# Eval("Name") %>'></asp:Literal></h3>
    <asp:Repeater runat="server" DataSource='<%# Eval("Reviews")%>' >
        <h4><asp:Literal ID="Literal1" runat="server" Text='<%# Eval("Title") %>' /><br /></h4>
        <asp:Literal ID="Literal2" runat="server" Text='<%# Eval("Summary") %>' />

Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
TeaDrinkingGeek (March 18th, 2011)