获得Text - CheckBoxListGetText
2017-02-19 14:05:45 访问(1553) 赞(0) 踩(0)
/// <summary>
/// 获得Text - CheckBoxListGetText
/// </summary>
/// <param name="extAspNetCheckBoxList"></param>
/// <param name="Ids"></param>
/// <param name="linkChar"></param>
/// <returns></returns>
public string CheckBoxListGetText
(
FineUI.CheckBoxList extAspNetCheckBoxList,
string Ids,
string linkChar
)
{
if (Ids == null || Ids.Length == 0)
return "";
Ids = Ids.Trim();
if (Ids.Length == 0)
return "";
StringBuilder theResult = new StringBuilder();
bool isFirst = true;
string strIds = "," + Ids + ",";
foreach (FineUI.CheckItem item in extAspNetCheckBoxList.Items)
{
if (strIds.Contains("," + item.Value + ","))
{
if (isFirst)
{
isFirst = false;
}
else
{
theResult.Append(linkChar);
}
theResult.Append(item.Text);
}
}
return theResult.ToString();
}
标签:
获得Text - CheckBoxListGetText 


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