CheckBoxList取值及勾选上
2007-05-18 11:40
295 查看
string strrighgs = "";
for (int i = 0; i < this.cblrighgs.Items.Count; i++)
string str = "";
foreach (ListItem li in cblrighgs.Items)
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;
}
}
}
for (int i = 0; i < this.cblrighgs.Items.Count; i++)
string str = "";
foreach (ListItem li in cblrighgs.Items)
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;
}
}
}
相关文章推荐
- asp.net CheckBoxList 取值与是否选中,后台控制前台checkboxList选中
- CheckBoxList数据绑定及取值(转)
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- asp.net CheckBoxList 取值与勾选,复选框后台控制前台checkbox选中
- asp.net CheckBoxList 取值与勾选,复选框后台控制前台checkbox选中
- CheckBoxList多条件取值,sql查询
- asp.net CheckBoxList 取值与是否选中,后台控制前台checkboxList选中
- asp.net CheckBoxList 取值与勾选,复选框后台控制前台checkbox选中
- CheckBoxList 取值
- CheckBoxList动态绑定 取值_ASPNET(转)
- asp.net CheckBoxList 取值与是否选中,后台控制前台checkboxList选中
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- Jquery 中的CheckBox、 RadioButton、 DropDownList、CheckBoxList、RadioButtonList的取值赋值
- CheckBoxList取值及勾选
- asp.net CheckBoxList 取值与勾选,复选框后台控制前台checkbox选中
- CheckBoxList取值及勾选上
- CheckBoxList 取值 及选中相关用法
- CheckBoxList和RadioButtonList的使用(后台取值和赋值)
- 关于checkboxlist前台取值问题