void ibtnRoleUserDelete_Click(object sender, ImageClickEventArgs e)
{
if (ViewState[CMSViewStateManager.RoleID] != null)
{
int RoleID = Convert.ToInt32(ViewState[CMSViewStateManager.RoleID]);
for (int i = 0; i < gvRole.Rows.Count; i++)
{
CheckBox chkItem = (CheckBox)gvRole.Rows[i].FindControl("chkItem");
if (chkItem != null && chkItem.Checked)
{
HtmlInputHidden hdnID = (HtmlInputHidden)gvRole.Rows[i].FindControl("hdnID");
if (hdnID != null && !string.IsNullOrEmpty(hdnID.Value))
{
int UserID = Convert.ToInt32(hdnID.Value);
RoleManager.DeleteRoleUser(RoleID, UserID);
}
}
}
FillUsers(-1);
UserExitMode();
}
}
#endregion