foreach (ListItem li in chkBoxPro.Items)
{
if (li.Value == arrList[i])
li.Selected = true;
}
private string getTotal()
{
int totalNum = 0;
for (int i = 0; i < chkBoxPro.Items.Count; i++)
{
if (chkBoxPro.Items[i].Selected)
{
totalNum += 1;
}
}
return totalNum.ToString();
}
{
if (li.Value == arrList[i])
li.Selected = true;
}
private string getTotal()
{
int totalNum = 0;
for (int i = 0; i < chkBoxPro.Items.Count; i++)
{
if (chkBoxPro.Items[i].Selected)
{
totalNum += 1;
}
}
return totalNum.ToString();
}