复选框列表选择 [英] check box list selection
本文介绍了复选框列表选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我绑定数据列表中的复选框列表,并用一个复选框显示州和城市..选中一个特定的复选框后,它应该显示该特定城市下的所有朋友....例如:如果我单击bangalore,karnataka,则应在bangalore中显示所有朋友的名字.
解决方案
使用将AutoBostBack
属性设置为true的CheckBoxList
和将UpdatePanel
设置为UpdateMode
属性设置为条件"并包含显示面板.
1.将复选框列表注册为异步回发控件.
2.当复选框列表进行回发时,使用SelectedValue
属性加载好友集并更新面板.
u hv fire query
从ur表中选择名称,其中city =&checkedboxlist1.text
它将选择颗粒记录的一个值
I am binding check box list in datalist and displaying state and city with a check box.... after selecting one particular checkbox then it should display all friends which are under particular city.... ex: if i click on bangalore,karnataka then it should display all friends name within bangalore
解决方案use aCheckBoxList
withAutoBostBack
property set to true, and anUpdatePanel
withUpdateMode
property set to Conditional and containing the displaying panel.
1. Register the checkbox list as an asynchronous post-back control.
2. when the checkbox list makes a post-back use theSelectedValue
Property to load the friend set and update the panel.
u hv fire query
select name from ur table where city=" &checkedboxlist1.text
it will select the one value of particulate record
这篇关于复选框列表选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文