两个下拉列表菜单 [英] two dropdown list menu

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

问题描述

请告诉我如何从两个下拉列表中选择值。它的平均下拉线是图像分辨率和第二个图像类别,选中后两个值都显示结果。









并不意味着从一个下拉列表中选择两个值。



谢谢

please tell me how to select value from two dropdown list. its mean one dropdown line is image resolution and second image categories after selected both value display the result.




it not mean to select two value form one dropdown list.

thank you

推荐答案

您可以将SelectedIndexChanged事件添加到两个下拉列表控件并检查dropdownlist1和dropdownlist所选项目值,如果两个下拉列表都有值,则可以加载数据。
You can add SelectedIndexChanged event to both dropdownlist controls and check the dropdownlist1 and dropdownlist selected items values, if both dropdownlists having values, you can load data.


两个选项首先选择两个下拉菜单,然后单击一个按钮



或者选择索引更改事件,因为DamithsL说



简单的方法是使用一个按钮,因为它对于初学者程序员来说并不复杂



但你可以尝试使用selectedindexchange事件来学习如何添加事件以及如何使用活动



未来的另一项活动控制



欢呼



string SelectedIndex =;



SelectedIndex = combobox.selecteditem;
there is two option first select two dropdown and click at a button

or selectedindexchange event as DamithsL said

the easy way is to use a button because it is not complicate for beginer programmer

but you can try to use selectedindexchange event to learn how to add event and how to use the event for

another event control for the future

Cheer

string SelectedIndex = "";

SelectedIndex = combobox.selecteditem ;


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

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