For the solution, I cannot use any postback methods, because this is all working through ajax. The solution need to be implemented in the asp.net code.

I have a `List<WebPage>` that contains a list of Links `(List<Link>)` and I need for all the links to bind repetitive information such as page title, id, url. Here is my current repeater.

<div id="result">
        <asp:Repeater runat="server" id="results">
            <Itemtemplate>
                <asp:Repeater runat="server" datasource='<%# Eval("Links") %>'>
                    <Itemtemplate>
                        <tr class="gradeX odd">
                            <td><%# Eval("Id") %></td> //property of WebPage (part of results repeater)
                            <td><%# Eval("Title") %></td> //property of WebPage (part of results repeater)
                            <td><%# Eval("Url") %></td> //property of WebPage (part of results repeater)
                            <td><%# Eval("URL") %></td>//Property of Link
                            <td><%# Eval("URLType") %></td> //Property of Link
                            <td><%# Eval("URLState") %></td> //Property of Link
                        </tr>
                    </Itemtemplate>
                    </asp:Repeater>
            </Itemtemplate>
        </asp:Repeater>
    </div>

Of course this doesnt work, how can i do this?

Thanks for your help!

No suggestions?

First in page_load event you must fill first repeater.
After that in first repeater itemdatabound fill second repeater.
In itemdatabound you need to define second repeater like:

Repeater secondone = e.item.findcontrol("secondone") as Repeater;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.