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
;
}
}
}
查看全文
相关阅读:
Tips for Hoops 3D & ACIS
把书读薄TICPP(2)
Software Toolbox EasyOPC简介
Wonderware InSQL and Incurity安装心得
Linux root password reset
SQL Server 2005 的搞笑
SVG 简介
M0n0wall 是什么?
Solaris 上调试系统 hang 的总结
DDNS简介
原文地址:https://www.cnblogs.com/cnaspnet/p/751293.html
最新文章
python中 for 循环和 while循环求 1100的和
python 小甲鱼猜数字游戏
[转载]oracle11g ORA12514:TNS:监听程序当前无法识别
[转载]999只纸鹤,999个爱你的理由…… 【1】
[转载]oracle11g ORA12514:TNS:监听程序当前无法识别
[转载]ora03114:未连接数据库
[转载]ora03114:未连接数据库
[转载]ORA12560: TNS: 协议适配器错误
[转载]TNS12541: TNS: 无监听程序 (Oracle LISTENER监听)
[转载]ORA12560: TNS: 协议适配器错误
热门文章
[转载]ORA12528问题解决
[转载]ORA12528问题解决
把书读薄EffectiveCPP3(1)
终于可以在Eclipse下编译C++代码了
使用TUT要注意的问题
用XML来配置属性用boost::any, TinyXML测试
为什么要用boost::array
万能数据类型any杂谈
Test Your UML Knowledge
把书读薄——TICPP(1)
Copyright © 2011-2022 走看看