3种方式遍历Repeater中的CheckBox全选
来源:互联网 发布:js border-color 编辑:程序博客网 时间:2024/06/05 19:53
1 foreach (Control c in this.Repeater1.Controls)
2 {
3 HtmlInputCheckBox check = (HtmlInputCheckBox)c.FindControl("chkSelect");
4 if( check != null )
5 {
6 check.Checked = true;
7 }
8 }
方式2
引用
1 for (int i=0;i<this.Repeater1.Items.Count;i++)
2 {
3 HtmlInputCheckBox check = (HtmlInputCheckBox)this.Repeater1.Items[i].FindControl("chkSelect");
4 if( check != null )
5 {
6 check.Checked = true;
7 }
8 }
方式3
引用
1 foreach( RepeaterItem item in this.Repeater1.Items )
2 {
3 HtmlInputCheckBox check = (HtmlInputCheckBox)item.FindControl("chkSelect");
4 if( check != null )
5 {
6 check.Checked = true;
7 }
8 }
- 3种方式遍历repeater中的CheckBox全选
- 3种方式遍历Repeater中的CheckBox全选
- 3种方式遍历Repeater中的CheckBox全选
- 3种方式遍历Repeater中的CheckBox全选
- 3种方式遍历Repeater中的CheckBox并全选
- 3种方式遍历Repeater中的CheckBox并全选
- 3种方式遍历Repeater中的CheckBox全选
- 3种方式遍历Repeater中的CheckBox全选
- 3种方式遍历Repeater中的CheckBox全选
- 3种方式遍历Repeater中的CheckBox全选
- 3种方式遍历repeater中的控件,可作为CheckBox全选
- 遍历repeater中的CheckBox全选
- Repeater/CheckBox 全选问题
- Repeater中CheckBox全选
- 遍历 repeater中的控件的方式
- Repeater控件中实现checkbox的全选
- Repeater控件中实现checkbox的全选
- checkbox嵌套在repeater,gridview中的全选/反选(方法总结)
- MFC C++类型学习
- MOORE'S LAW
- 如何用js来判断浏览器类型(ie,firefox)等等
- wince上能够使用的hook是有限的
- 兵法教程--经理人技能二:调配资源
- 3种方式遍历Repeater中的CheckBox全选
- 写博客需要坚持
- wince中的hook(钩子)用法
- firefox 中 innerText,innerHTML,textContent
- Using keyboard hooks in WinCE
- WINCE勾子使用方法(转)
- SQL中如何用一个表更新另一个表
- [摘]什么是游标(cursor)?
- 广州下调失业保险缴费比例90% 养老保险个人账户缴费基数有变