void ibtnDelete_Click(object sender, ImageClickEventArgs e)
{
for (int i = 0; i < gvAttribute.Rows.Count; i++)
{
CheckBox chkItem = (CheckBox)gvAttribute.Rows[i].FindControl("chkItem");
if (chkItem != null && chkItem.Checked)
{
HtmlInputHidden hdnID = (HtmlInputHidden)gvAttribute.Rows[i].FindControl("hdnID");
if (hdnID != null && !string.IsNullOrEmpty(hdnID.Value))
{
int AttributeID = Convert.ToInt32(hdnID.Value);
AttributeManager.DeleteLogical(AttributeID);
}
}
}
FillAttributes(-1);
ExitMode();
upnlAttributeItem.Update();
}
#endregion