// Delete ImagePath protected void lnkBtnDelete_Click(object sender, EventArgs e) { //---------------------------------------------- LinkButton lnkBtnDelete = (LinkButton)sender; //---------------------------------------------- this.CategoryID = Convert.ToInt16(lnkBtnDelete.CommandArgument); if (this.LinqDeleteXmlData() == true) { this.LinqFetchXmlData(); BaseSys.DeleteImageFile(this.ImagePath); } else BaseSys.NoAction(lbMultiActMsg, Properties.Resources.NoDelete); }