protected void btnImgDeletePopUp_Click(object sender, ImageClickEventArgs e) { try { InventoryServiceClient lclsService = new InventoryServiceClient(); lclsService.DeleteItemMapping(Convert.ToInt64(hdnItemMapID.Value), false, Convert.ToInt64(defaultPage.UserId)); EventLogger log = new EventLogger(config); string msg = Constant.VendorItemMapDeleteMessage.Replace("ShowdelPopup('", "").Replace("<<VendorItemMap>>", HddVendorItemCategory.Value).Replace("');", ""); log.LogInformation(msg); ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", Constant.VendorItemMapDeleteMessage.Replace("<<VendorItemMap>>", HddVendorItemCategory.Value), true); BindGrid(); } catch (Exception ex) { EventLogger log = new EventLogger(config); log.LogException(ex); ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", Constant.VendorItemMapErrorMessage.Replace("<<VendorItemMap>>", ex.Message), true); } }