zoukankan
html css js c++ java
CheckBoxList取值及勾选上
string
strrighgs
=
""
;
for
(
int
i
=
0
; i
<
this
.cblrighgs.Items.Count; i
++
)
{
if
(
this
.cblrighgs.Items[i].Selected
==
true
)
{
strrighgs
+=
this
.cblrighgs.Items[i].Value
+
"
|
"
;
}
}
string
str
=
""
;
foreach
(ListItem li
in
cblrighgs.Items)
{
if
(li.Selected
==
true
)
{
str
+=
li.Value
+
"
;
"
;
}
}
Response.Write(str);
Response.End();
勾选上:
string
[] strtemp
=
strapp.Split(
'|
'
);
foreach
(
string
str
in
strtemp)
{
for
(
int
i
=
0
; i
<
cblrighgs.Items.Count; i
++
)
{
if
(
this
.cblrighgs.Items[i].Value
==
str)
{
this
.cblrighgs.Items[i].Selected
=
true
;
}
}
}
查看全文
相关阅读:
3.30一周拾遗
3.25周 一周拾遗
自动加载以及Composer的实现
MySQL 事务处理
PHP代码实现3 [函数角度]
PHP代码实现2 [从变量和数据的角度] 1
PHP代码实现2 [从变量和数据的角度] 2
vue 报错: [Vue warn]: Error in nextTick: "RangeError: Maximum call stack size exceeded" 很可能是你的name错了
vue电商开发记录1—实现电商图片放大镜,移入放大效果
vue图片点击放大预览v-viewer
原文地址:https://www.cnblogs.com/cnaspnet/p/751293.html
最新文章
nginx 的url 后面的路径不加 /访问不到页面
docker registry
screen 使用
k8s 集群改造
谷歌浏览器安装head插件
k8s 权限控制之rbac
logrotate
mysql-export 监控
系统无法验证证书签发机构问题
kubernetes之etcd集群部署
热门文章
tcp状态详解
kernel: blk_update_request: I/O error, dev fd0, sector 0
转载-Linux cached过高问题
定制centos7镜像
mailx配置TSL发送邮件
hadoop单节点伪集群
zookeeper安装配置
hadoop HA
4.7-4.20周记
Weekend Log 4.6
Copyright © 2011-2022 走看看