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
;
}
}
}
查看全文
相关阅读:
————————————————————————动态规划——————————————————————1003——————————
-------------初识----------动态规划。--------------------------------------------
lsof,fuser,xargs,print0,cut,paste,cat,tac,rev,exec,{},双引号,单引号,‘(字符串中执行命令)
bash characters
SNORT--install ---dependency-resolve
Linux SA--HugePage,HPET
linux UIO
java generic super, extend
linux dpdk DDOS清洗和流量行为分析
虚拟网卡 TUN/TAP 驱动程序设计原理
原文地址:https://www.cnblogs.com/cnaspnet/p/751293.html
最新文章
freemaker遍历嵌套list的map
js写的替换字符串(相当于js操作字符串的一个练习)
网络分类
计算机网络的性能指标
OSI参考模型与排错
OSI七层模型详解
TCP/IP协议
生成器
函数编程(二)
函数编程——匿名函数与lambda(一)
热门文章
迭代器
函数——闭包和装饰器
————————————————素数的快速判断方法————————————————————
全国新生赛——————————1001————————————————
比赛总结之————————————全国新生赛。
杭电中需要注意的地方。
—————————————1005————找规律的思想值得学习。
——————散碎的小技巧——————
——————————————1004————————————————题水,人更水。
——————————————————————————————————1203————————————————————————————————
Copyright © 2011-2022 走看看