repeater 嵌套问题
问题思路:如何根据repeater2中是否有数据进行判断repeater1中h3是否以链接方式展示
<div class="pro_list"> <ul id="help_list"> <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <li> <h3 class="ta2 <%# flag(Eval("selfcode").ToString(),2)%>"> <a href='productslist.aspx?id=<%# Eval("selfcode") %>' title='<%# Eval("thename") %>'> <%# areahelper.substr(Eval("thename").ToString(),30) %></a></h3> <ul style="display:none"> <asp:Repeater ID="repeater2" runat="server" DataSource='<%# twotype(Eval("selfcode").ToString())%>'> <ItemTemplate> <li><a href='productslist.aspx?id=<%# Eval("selfcode") %>' title='<%# Eval("thename") %>'> <%# areahelper.substr(Eval("thename").ToString(),30) %></a></li> <div style="clear:both;"></div> </ItemTemplate> </asp:Repeater> </ul> </li> <div style="clear:both;"></div> </ItemTemplate> </asp:Repeater> </ul></div>