日期:2014-05-17 浏览次数:20621 次
<div class="menu">
<ul>
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSourceQuyu">
<ItemTemplate>
<li><a class="hide" href="###"><%# Eval("region")%></a>
<ul>
<asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSourceQuyu2">
<ItemTemplate>
<li><a href="###"><%# Eval("province")%></a></li>
</ItemTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="SqlDataSourceQuyu2" runat="server"
ConnectionString="<%$ ConnectionStrings:zidaiHaiyang %>"
SelectCommand='SELECT [RegionId], [ProductName], [province] FROM [RegionProduct] where [RegionId] =<%# Eval("id")%>' ></asp:SqlDataSource>
//我想根据上一级的id查到此
</ul>
</li>
</ItemTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="SqlDataSourceQuyu" runat="server"