获得 CheckBoxList 选中 - id,id,id 模式 - CheckBoxListGetSelected
2017-02-19 13:59:41 访问(1673) 赞(0) 踩(0)
/// <summary>
/// 获得 CheckBoxList 选中 - id,id,id 模式 - CheckBoxListGetSelected
/// </summary>
/// <param name="extAspNetCheckBoxList"></param>
public string CheckBoxListGetSelected
(
FineUI.CheckBoxList extAspNetCheckBoxList
)
{
StringBuilder theResult = new StringBuilder();
bool isFirst = true;
foreach (FineUI.CheckItem item in extAspNetCheckBoxList.Items)
{
if (item.Selected)
{
if (isFirst)
{
isFirst = false;
}
else
{
theResult.Append(",");
}
theResult.Append(item.Value);
}
}
return theResult.ToString();
}
标签:
获得 CheckBoxList 选中 - id 


id 


id 模式 - CheckBoxListGetSelected 


上一条:
下一条:
相关评论
发表评论