asp.net表格有四个下拉列表 [英] asp.net form with four dropdownlist
本文介绍了asp.net表格有四个下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
您应该对所有dropdownlis使用SelectedIndexChanged事件。您应该在Country的下拉列表SelectedIndexChanged事件上编写gridview绑定代码和状态下拉列表绑定代码。
请标记为答案如果解决你的问题。
we choose four dropdownlist in a web form and one gridview when i select any one e.g dropdownlist1 e.g india then data will directle display in gridview. how can i code for that...there are four tables country , state , city, and area..if i select country display state in second dropdownlist.. send for that code help me....
解决方案
You should use SelectedIndexChanged event for all dropdownlis.You should write your gridview binding code and state dropdownlist binding code on Country's dropdownlist SelectedIndexChanged event.
Please mark as answer if solve your problem.
这篇关于asp.net表格有四个下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文