I have following sample code, which uses nested ListView:
<asp:ListView ID="list" runat="server" ItemPlaceholderID="placeHolder"
OnItemDataBound="listItemDataBound">
<ItemTemplate>
<p><%#Eval("name") %></p>
<asp:ListView ID="sublist" runat="server" ItemPlaceholderID="subPlaceHolder">
<ItemTemplate><%#Eval("subName") %></ItemTemplate>
<LayoutTemplate>
<asp:PlaceHolder ID="subPlaceHolder" runat="server"></asp:PlaceHolder>
</LayoutTemplate>
</asp:ListView>
</ItemTemplate>
<LayoutTemplate>
<asp:PlaceHolder ID="placeHolder" runat="server"></asp:PlaceHolder>
</LayoutTemplate>
</asp:ListView>
But nested ListView (sublist) is not recognized as a variable in my script code, so I can't access it and provide some databinding. When I add some other object inside main ListView (e.g. DataSource), it is also not recognized. How can I access nested ListView?
Thanks for any suggestion.