使用多个下拉列表创建搜索 [英] Creating search using more than one dropdown list

查看:102
本文介绍了使用多个下拉列表创建搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在我的Web应用程序中添加一个搜索模块.我想使用下拉列表.我想知道如何在同一页面中连接多个下拉列表.

例子:

假日类型:蜜月,购物(在下拉列表中选择)
预算:300-400、400-500、500-600(在下拉列表中选择)

结果:建议度假假期.

我是asp.net的新手.我认为可以使用其他"方法.如果任何人都可以共享任何相关的源代码,那就太好了.谢谢.



i would like to add a search module in my web application. I would like to use drop down list. I would like to know how to connect more than one drop down list in the same page.

Example :

Holiday Type : Honeymoon,shopping (select in a drop down list)
Budget : 300-400, 400-500, 500-600 (select in a drop down list)

Result : a suggested holiday pakage.

I''m new to asp.net. I think that ''if else'' method can be used. Would be nice if anyone could share any related source codes. Thank you.

推荐答案

如果您的意思是一个列表框的内容取决于在上一个列表框中选择的值,请尝试以下操作:CascadingDropDown [
If you mean that the content of one list box is dependent upon the value selected in the previous list box then try this: CascadingDropDown[^].

Howver, if you simply mean that the final result depends upon the selections in the first few then add a button and, in the OnClick event, examine the selected items and populate, for instance, a text box with the result (however you determine that result).


这篇关于使用多个下拉列表创建搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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