根据多个下拉列表值选择查询 [英] Select query based on multiple dropdownlist value

查看:88
本文介绍了根据多个下拉列表值选择查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys ..

我的ASP .net网页表格中有多个下拉列表。我只想根据从一个或多个dropdwonlist中选择的值来过滤数据访问。

尽快让我知道。

谢谢!!!

Hello Guys..
I have multiple dropdownlist in my ASP .net web form. I just want to filter the data access based on the values selected from one or more dropdwonlist.
Let me know ASAP.
Thanks!!!

推荐答案

Google for 级联下拉列表



你需要的是根据之前的drodown选择值填写另一个下拉列表。为此,您可以使用Javascript,AJAX UpdatePanel,AJAX PageMethod,客户端回调或正常的回发。



如果您在执行此操作时遇到任何特定问题,请试一试,与我们分享。
Google for Cascading dropdown.

What you need is to fill the other dropdown based on previous drodown selected value. For this, you can use Javascript, AJAX UpdatePanel, AJAX PageMethod, Client Callback or a normal postback.

Give a try, if you face any specific issue while doing it, do share with us.


定义下拉列表的OnSelectedIndexChanged事件。确保转动AutoPostBack =true并在后面的代码中获取所选值并根据用户选择的值检索数据集结果,然后刷新数据源。有意义吗?
Define OnSelectedIndexChanged event of the dropdown. Make sure you turn AutoPostBack="true"and in the code behind get the selected value and retrieve the dataset result based on user's selected value and then refresh the datasource. Makes sense?


这篇关于根据多个下拉列表值选择查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆