.net 获取checkBoxList 选中的值|radiobuttonlist|dropdownlist
2010-08-12 11:20
405 查看
.net 获取checkBoxList 选中的值
public string GetCheckBoxListValues(ListControl lc)
{
string tempValues = "";
foreach (ListItem li in lc.Items)
{
if (li.Selected)
tempValues += li.Value+",";
}
tempValues = tempValues.Trim(',');
return tempValues;
}
public string GetCheckBoxListValues(ListControl lc)
{
string tempValues = "";
foreach (ListItem li in lc.Items)
{
if (li.Selected)
tempValues += li.Value+",";
}
tempValues = tempValues.Trim(',');
return tempValues;
}
相关文章推荐
- .net 获取checkBoxList 选中的值|radiobuttonlist|dropdownlist
- .NET常用控件绑定(DropDownList、RadioButtonList、CheckBoxList、ListBox、BulletedList)
- Jquery.Validate验证CheckBoxList,RadioButtonList,DropDownList是否选中
- Jquery.Validate验证CheckBoxList,RadioButtonList,DropDownList是否选中
- Jquery.Validate验证CheckBoxList,RadioButtonList,DropDownList是否选中
- Jquery.Validate验证CheckBoxList,RadioButtonList,DropDownList是否选中
- ASP.NET服务器端控件RadioButtonList,DropDownList,CheckBoxList的取值、赋值用法
- 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组
- ListBox,CheckBoxList,DropDownList,RadioButtonList的常见用法
- ListBox,CheckBoxList,DropDownList,RadioButtonList的常见用法
- 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组
- 关于RadioButtonList,CheckBoxList,DropDownList的Selected Bind
- Jquery 获取CheckBoxList 中选择的值和获取RadioButton 选中的状态
- JQuery 对服务器控件 DropdownList, RadioButtonList, CheckboxList的操作总结
- 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组
- js获取CheckBoxList选中的值
- 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组(转)
- 用JavaScript获取Asp.net服务器端控件CheckBoxList的选中值数组
- Js获取checkboxlist所选中的值
- DEV treeList 获取 ListcheckBox选中节点内容