在外层Repeater里面绑定父级目录
各有一个CheckBox控件
在嵌套Repeater里面绑定子级目录
CheckBox parentCheck = (CheckBox)e.Item.FindControl("chkParentItem");父级
能取到值
CheckBox checkItem = (CheckBox)e.Item.FindControl("chkSonItem");再取子级就不行了!要怎么取嵌套Repeater里面CheckBox的checked属性
各有一个CheckBox控件
在嵌套Repeater里面绑定子级目录
CheckBox parentCheck = (CheckBox)e.Item.FindControl("chkParentItem");父级
能取到值
CheckBox checkItem = (CheckBox)e.Item.FindControl("chkSonItem");再取子级就不行了!要怎么取嵌套Repeater里面CheckBox的checked属性
解决方案 »
- 如何用代码向pop3服务器添加用户.
- UpdatePanel里面的控件改变UpdatePanel外面控件的值的问题
- datalist中用for循环邦定数据
- 高手帮我看看下面的javascript代码.
- 百分求分类分页存储过程
- 我从数据库中根据SQL语句,得到数据,现在我想根据点击这些数据,得到这些数据的明细,这样就要打开链接时需要传递参数,不知如何实现?具体见
- 求.无刷新代码
- 应该很简单,只是我很菜~~~~在线等
- Page.Init += new System.EventHandler(Page_Init);
- 如何从数据库一个表中区部分纪录填充DataSet
- 获得文件目录结构
- 求一验证时间格式的正则表达式
先取到父级Repeater里面的子级Repeater
Repeater rpt = e.Item.FindControl(子级Repeater的ID) as Repeater;
然后取当前子级的CheckBox的行数
int index = ((RepeaterItem)rpt.Parent).ItemIndex;
最后取当前子级的CheckBox
CheckBox checkItem = rpt.Items[index].FindControl("chkSonItem") as CheckBox;