LigerUI中,加载页面时,复选框默认选中了?

2025-05-14 19:43:58
推荐回答(1个)
回答1:

string[] selectArray = new string[5]{"2", "4", "9", "12", "17"}
foreach(string tag in selectArray)
{
string cboxID = string.Format("ck{0}", tag);
CheckBox cbox = this.Page.FindControl(cboxID) as CheckBox ;
if(cbox != null)
cbox.Checked = true;
}