如何实现ASP.NET 两个下拉框组合实现查询
两个下拉框对应该两个文本框,如何实现组合查询,请大家帮帮忙!谢谢!
源码:
<asp:TextBox ID="txtTop" runat="server"></asp:TextBox>
<asp:DropDownList ID="ddTop" runat="server">
<asp:ListItem Value="" Text="请选择查询条件"></asp:ListItem>
<asp:ListItem Value="startDate" Text="开始日期查询"></asp:ListItem>
<asp:ListItem Value="customer" Text="客户名称查询"></asp:ListItem>
<asp:ListItem Value="billType" Text="单据类别查询"></asp:ListItem>
<asp:ListItem Value="sales" Text="业务人员查询"></asp:ListItem>
<asp:ListItem Value="billNumber" Text="单号查询"></asp:ListItem>
<asp:ListItem Value="billState" Text="单据结/未结束状态查询"></asp:ListItem>
<asp:ListItem Value="endDate" Text="结束日期查询"></asp:ListItem>
</asp:DropDownList>
</div>
<div>
<asp:TextBox ID="txtBottom" runat="server"></asp:TextBox>
<asp:DropDownList ID="ddBottom" runat="server">
<asp:ListItem Value="" Text="请选择查询条件"></asp:ListItem>
<asp:ListItem Value="startDate" Text="开始日期查询"></asp:ListItem>
<asp:ListItem Value="customer" Text="客户名称查询"></asp:ListItem>
<asp:ListItem Value="billType" Text="单据类别查询"></asp:ListItem>
<asp:ListItem Value="sales" Text="业务人员查询"></asp:ListItem>
<asp:ListItem Value="billNumber" Text="单号查询"></asp:ListItem>
<asp:ListItem Value="billState" Text="单据结/未结束状态查询"></asp:ListItem>
<asp:ListItem Value="endDate" Text="结束日期查询"></asp:ListItem>
<asp:ListItem Value ="cusCancle" Text="客户取消维修查询"></asp:ListItem>
</asp:DropDownList>
</div>
<div>
<asp:Button ID="btnQuery" runat="server" Text="查 询"/>
</div>
<div>
<asp:Repeater ID="rtResult" runat="server">
</asp:Repeater>
源码:
<asp:TextBox ID="txtTop" runat="server"></asp:TextBox>
<asp:DropDownList ID="ddTop" runat="server">
<asp:ListItem Value="" Text="请选择查询条件"></asp:ListItem>
<asp:ListItem Value="startDate" Text="开始日期查询"></asp:ListItem>
<asp:ListItem Value="customer" Text="客户名称查询"></asp:ListItem>
<asp:ListItem Value="billType" Text="单据类别查询"></asp:ListItem>
<asp:ListItem Value="sales" Text="业务人员查询"></asp:ListItem>
<asp:ListItem Value="billNumber" Text="单号查询"></asp:ListItem>
<asp:ListItem Value="billState" Text="单据结/未结束状态查询"></asp:ListItem>
<asp:ListItem Value="endDate" Text="结束日期查询"></asp:ListItem>
</asp:DropDownList>
</div>
<div>
<asp:TextBox ID="txtBottom" runat="server"></asp:TextBox>
<asp:DropDownList ID="ddBottom" runat="server">
<asp:ListItem Value="" Text="请选择查询条件"></asp:ListItem>
<asp:ListItem Value="startDate" Text="开始日期查询"></asp:ListItem>
<asp:ListItem Value="customer" Text="客户名称查询"></asp:ListItem>
<asp:ListItem Value="billType" Text="单据类别查询"></asp:ListItem>
<asp:ListItem Value="sales" Text="业务人员查询"></asp:ListItem>
<asp:ListItem Value="billNumber" Text="单号查询"></asp:ListItem>
<asp:ListItem Value="billState" Text="单据结/未结束状态查询"></asp:ListItem>
<asp:ListItem Value="endDate" Text="结束日期查询"></asp:ListItem>
<asp:ListItem Value ="cusCancle" Text="客户取消维修查询"></asp:ListItem>
</asp:DropDownList>
</div>
<div>
<asp:Button ID="btnQuery" runat="server" Text="查 询"/>
</div>
<div>
<asp:Repeater ID="rtResult" runat="server">
</asp:Repeater>
...全文
相关推荐
asp.net Dropdownlist结合CheckBoxList多选下拉框
asp.net Dropdownlist结合CheckBoxList多选下拉框
asp.net 可编辑下拉框
asp.net 网页中经常用到下拉框,那个只能下拉选择,无法自定义输入, EditableDropDownList可满足此功能
sharepoint二级联动的下拉框控件
sharepoint二级联动的下拉框控件。
简单ASP.NET(VB)无刷新联动下拉
这个是使用尚俊杰老师教材里面的一个例子作一个简单的例子修改而成,希望对大家有作用!
Asp.net带复选框下拉表
带复选框的下拉表,适用于Asp.net Web程序开发。



