下拉列表值选择基于其他下拉列表 [英] dropdown list value seletion on the basis of other dropdown list

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

问题描述

我有从数据库加载的类别的下拉列表1

i有另一个下拉列表2产品..我想这样做,如果我从下拉列表中选择类别1然后相应的产品类别应该在下拉列表中加载

I have dropdown list1 of Categories which i have loaded from database
i have another dropdown list2 product..i want to do that if i select the category from drop down list1 then the product in the respective category should be loaded in dropdown list2

推荐答案

注册DropDownList SelectedValueChanged事件,在SelectedValue的基础上从数据库获取数据并绑定DropDownList2
register DropDownList SelectedValueChanged event, get data from database on base of SelectedValue and bind DropDownList2


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

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