0

当用户取消选中项目时。我们如何获得取消选中项目

for (int i = 0; i < ChkLstUserRoles.Items.Count; i++)
{
     if (ChkLstUserRoles.Items[i].Selected == true)
     {
         URoles = URoles + "|" + ChkLstUserRoles.Items[i].Value;
         ActivityLog = ActivityLog + "Grant the " + ChkLstUserRoles.Items[i].Text + " to  user [" + CboUserName.Text + "]çGrantRole|";
     }
}
4

1 回答 1

0

使用这个条件,

ChkLstUserRoles.Items[i].Selected == false
于 2013-08-27T11:06:08.567 回答