//绑定导航权限资源 protected void rptList_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { string[] actionTypeArr = ((HiddenField)e.Item.FindControl("hidActionType")).Value.Split(','); CheckBoxList cblActionType = (CheckBoxList)e.Item.FindControl("cblActionType"); cblActionType.Items.Clear(); for (int i = 0; i < actionTypeArr.Length; i++) { if (EnumInfo.IsContains <Tools.Const.Enums.ManagementOperate>(actionTypeArr[i])) { cblActionType.Items.Add(new ListItem(" " + EnumInfo.ToDictionary <Tools.Const.Enums.ManagementOperate>()[actionTypeArr[i]].Explain + " ", actionTypeArr[i])); } } } }