zoukankan
html css js c++ java
种方式遍历repeater中的CheckBox全选
方式1:
foreach
(Control c
in
this
.Repeater1.Controls)
{
HtmlInputCheckBox check
=
(HtmlInputCheckBox)c.FindControl(
"
cbDelete1
"
);
if
( check
!=
null
)
{
check.Checked
=
true
;
}
}
方式2:
for
(
int
i
=
0
;i
<
this
.Repeater1.Items.Count;i
++
)
{
HtmlInputCheckBox check
=
(HtmlInputCheckBox)
this
.Repeater1.Items[i].FindControl(
"
cbDelete1
"
);
if
( check
!=
null
)
{
check.Checked
=
true
;
}
}
方式3:
foreach
( RepeaterItem item
in
this
.Repeater1.Items )
{
HtmlInputCheckBox check
=
(HtmlInputCheckBox)item.FindControl(
"
cbDelete1
"
);
if
( check
!=
null
)
{
check.Checked
=
true
;
}
}
查看全文
相关阅读:
iptables学习笔记
启动级别和单用户模式
Apache虚拟主机配置模板
LAMP环境搭建问题
LAMP环境搭建
C++面向对象高级编程(九)Reference与重载operator new和operator delete
C++面向对象高级编程(八)模板
C++面向对象高级编程(七)point-like classes和function-like classes
C++面向对象高级编程(六)转换函数与non-explicit one argument ctor
C++面向对象高级编程(五)类与类之间的关系
原文地址:https://www.cnblogs.com/skyshenwei/p/1652758.html
最新文章
Vue推荐资料
调集群,我的姿势不对,好累!
Vue报错
Communications link failure
LINUX设置固定IP
最短路&生成树&二分图匹配&费用流问题
图论&双连通分量&强联通分量&2-SAT
Codeforces 1059E. Split the Tree
并查集&线段树&树状数组&排序二叉树
Trie树&kmp&AC自动机&后缀数组&Manacher
热门文章
Codeforces 1051F. The Shortest Statement
lca最短公共祖先模板(hdu2586)
模板-网络流-Dinic
ACM-ICPC 2018 沈阳赛区网络预赛 D. Made In Heaven(第k短路模板)
Codeforces 1036E. Covered Points
Nagios的基本安装配置
Zabbix的基本安装配置
一个渣渣tomcat的学习成果.
LNMP环境搭建
Nginx虚拟主机配置模板
Copyright © 2011-2022 走看看