如何在cshtml页面中添加ligerui
展开全部
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;
}
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;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询