0

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!

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by kad1r
0

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;
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.