protected void BtnConfirmDeleting_Click(object sender, EventArgs e) { try { Int32 IdToDelete = Convert.ToInt32(HydIdToDelete.Value); TrackManagement2PageManager ObjTrackManagement2PageManager = new TrackManagement2PageManager(); ObjTrackManagement2PageManager.DeleteEvt(IdToDelete); //ImageEFRepository rep = new ImageEFRepository(""); //Ls.Prj.Entity.Image ImgToStoreInAudit = rep.SelectEntity(IdToDelete); ////cancella la riga //DeleteEntity(IdToDelete); ////cancella l'immagine fisica //string DestPdfFullPath = HttpContext.Current.Server.MapPath("~/Public/Photos/"); //string ImgName = ImgToStoreInAudit.ImageName; //System.IO.File.Delete(DestPdfFullPath + ImgName); //AuditPageManager ObjPageManager = new AuditPageManager(); //ObjPageManager.InsertAudit(LoginUsr, "Image deleted: " + ImgToStoreInAudit.ImageName); BindRepeater(); DivDelete.Attributes.Add("Class", "ParentDivDeleting Disattivato"); } catch (Exception ex) { PrintError(ex); } }
protected void BtnConfirmDeleting_Click(object sender, EventArgs e) { try { Int32 IdToDelete = Convert.ToInt32(HydIdToDelete.Value); TrackManagement2PageManager ObjTrackManagement2PageManager = new TrackManagement2PageManager(); ObjTrackManagement2PageManager.DeleteEvt(IdToDelete); BindBrotherEvts(); DivDelete.Attributes.Add("Class", "ParentDivDeleting Disattivato"); } catch (Exception ex) { PrintError(ex); } }