如何将下拉列表绑定到数据库表 [英] How can I bind dropdown to database table
本文介绍了如何将下拉列表绑定到数据库表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有三个表State,District和City,每个表都有主键.区域表具有状态表的外键,而城市具有区域表的外键.
我必须通过编程将
绑定到具有选定索引更改的三个下拉框来绑定这三个表.请检查以下线程是否存在类似问题:
http://forums.asp.net/p/1015437/2462049.aspx#2462049
检查此CascadingDropDown演示 [ ^ ]
I have three tables State, District & City and each have primary key. District table has foreign key of state table and city has foreign key of district table.
I have to bind this three table with three dropdownbox with selectedindex change by programatically
解决方案
Please check the following thread for similar issue:
http://forums.asp.net/p/1015437/2462049.aspx#2462049
check this CascadingDropDown Demonstration[^]
这篇关于如何将下拉列表绑定到数据库表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文