Asp.net 如何使用代码隐藏在复选框列表中应用多个筛选器
我想应用多选择和多层次的产品和公司的过滤器,使价格将显示相应的。如果任何一个选择productLaptop name,则公司列下仅显示Laptop->Company name,然后将根据所选公司显示价格 请帮我引路。我正在取消绑定以附加输出。下面是out with复选框Asp.net 如何使用代码隐藏在复选框列表中应用多个筛选器,asp.net,checkboxlist,Asp.net,Checkboxlist,我想应用多选择和多层次的产品和公司的过滤器,使价格将显示相应的。如果任何一个选择productLaptop name,则公司列下仅显示Laptop->Company name,然后将根据所选公司显示价格 请帮我引路。我正在取消绑定以附加输出。下面是out with复选框 <div class="filter"> <asp:Label ID="lblProduct" runat="server" Text="Product"></asp:Label&g
<div class="filter">
<asp:Label ID="lblProduct" runat="server" Text="Product"></asp:Label>
<asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="CategoryTitle" DataValueField="CategoryTitle"></asp:CheckBoxList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Product%>" SelectCommand="SELECT [ProdustId], [ProductTitle] FROM [ProductMaster] WHERE ID=1 "></asp:SqlDataSource>
</div>
<div class="filter">
<asp:Label ID="lblTopic" runat="server" Text="Topic"></asp:Label>
<asp:CheckBoxList ID="CheckBoxList2" runat="server" DataSourceID="SqlDataSource1" DataTextField="CategoryTitle" DataValueField="CategoryTitle"></asp:CheckBoxList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Product%>" SelectCommand="SELECT [ProdustId], [ProductTitle] FROM [ProductMaster] WHERE ID=2 "></asp:SqlDataSource>
</div>
<div class="filter">
<asp:Label ID="lblContentType" runat="server" Text="Content Type"></asp:Label>
<asp:CheckBoxList ID="CheckBoxList3" runat="server" DataSourceID="SqlDataSource1" DataTextField="CategoryTitle" DataValueField="CategoryTitle"></asp:CheckBoxList>
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:Product%>" SelectCommand="SELECT [ProdustId], [ProductTitle] FROM [ProductMaster] WHERE ID=3"></asp:SqlDataSource>
</div>
使用asp:CheckBoxList SelectedIndexChanged Events根据选择的值生成查询谢谢反馈,对此的sql查询将是什么?例如:选择名称\u公司,PrductMaster中的价格product='Laptop' Product Name Company Price Laptop Toshiba 37000 Mobile Asus 2000 Tab Nokia 3000