The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

How to nest Repeaters?

Last post 12-18-2007, 2:00 PM by kwilder. 0 replies.
Sort Posts: Previous Next
  •  12-18-2007, 2:00 PM 7254

    How to nest Repeaters?

    I'm able to load a repeater control fine, but I need to nest another repeater inside the parent repeater, and I'm having trouble figuring out how to get the data to it.

    I've seen an example from the Microsoft Knowledge Base,  http://support.microsoft.com/kb/306154 but this example doesn't work with Entity Spaces.  I know I need to change some things, but I'm stuck as to what.  Also, unfortunately I cannot use esDataSource, because the production server only has SQL Server 2000.

    Here's the example code for nesting a repeater that I'm following:

     

    Code:
    <asp:Repeater id="parentRepeater" runat="server">
    <itemtemplate>
    <b>
    <%# DataBinder.Eval(Container.DataItem, "au_id") %> </b>
    <br>
    <asp:repeater id="childRepeater" runat="server"
    datasource='<%# ((DataRowView)Container.DataItem)
    .Row.GetChildRows("myrelation") %>'
    >
    <itemtemplate>
    <%# DataBinder.Eval(Container.DataItem,
    "[\"title_id\"]")%><br>
    </itemtemplate>
    </asp:Repeater>
    </itemtemplate>
    </asp:Repeater>
     

     Any ideas?


    King Wilder
    http://www.kingwilder.com
View as RSS news feed in XML