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
;
}
}
}
查看全文
相关阅读:
用对象模式实现QTP的远程调用
Python 常用类库
User32.dll 函数的相关方法整理
python ConfigParser – 配置文件解析
python 中的 __init__()解释
Access to the database file is not allowed. [ File name = ***\DataBase.sdf
在遗忘中成长
在MVC3里如何关闭Form标签
javascript 中写cookie
.NET之死和观念的力量【】
原文地址:https://www.cnblogs.com/cnaspnet/p/751293.html
最新文章
(zt)Flash破解与加密综合
TGE学习笔记05 阴影
TGE学习笔记08 DIF与DTS的区别
TGE学习笔记06 动画模型
(zt)介绍Cairngorm
(zt)超级玛丽全地图 线路 道具 攻略
flex学习笔记01 安装amfphp
(zt)GPU深度发掘(二)::OpenGL FrameBuffer Object 101
flex学习笔记02 WebORB
TGE学习笔记07 脚本控制动画
热门文章
Python中zip()函数用法举例 规格严格
调节file文件上传框的样式
Chrome调试js
ajaxfileupload.js在IE中的支持问题
redis学习教程之一基本命令
TesseractOCR3.01语言库训练步骤
python 常用的50个模块
QTP11破解
RubyMine4.5.4 debug手动安装方法简介
QTP插件破解
Copyright © 2011-2022 走看看