双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

如何实现ASP.NET 两个下拉框组合实现查询

guojingmail2009 guojingmail2009 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
两个下拉框对应该两个文本框,如何实现组合查询,请大家帮帮忙!谢谢!
源码:

<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>
...全文
评论 8
收藏 已收藏
分享
返回顶部
guojingmail2009
.NET社区 62,274 成员 668,968 内容