public override void Save() { if (_fileList1 != null) { _fileList1.IsLoaded = true; } if (_imageList1 != null) { _imageList1.IsLoaded = true; } CompletePath = GetCompletePath(); if (IsNew) { if (ParentGroup == null) { //OrderingNumber = this.DataCollection.CalculateNewRootOrderingNumber(); } else { //OrderingNumber = ParentGroup.CalculateNewOrderingNumber(); } } //zorg dat in de db altijd relatieve urls blijven bestaan //if (Image1 != null) this.Image1 = Image1.Replace(Site.DomainName + "/", ""); //if (Image2 != null) this.Image2 = Image2.Replace(Site.DomainName + "/", ""); //if (Image3 != null) this.Image3 = Image3.Replace(Site.DomainName + "/", ""); //if (Image4 != null) this.Image4 = Image4.Replace(Site.DomainName + "/", ""); //if (Image5 != null) this.Image5 = Image5.Replace(Site.DomainName + "/", ""); if (Image1 != null) { this.Image1 = Image1.Replace(Site.DomainName, ""); } if (Image2 != null) { this.Image2 = Image2.Replace(Site.DomainName, ""); } if (Image3 != null) { this.Image3 = Image3.Replace(Site.DomainName, ""); } if (Image4 != null) { this.Image4 = Image4.Replace(Site.DomainName, ""); } if (Image5 != null) { this.Image5 = Image5.Replace(Site.DomainName, ""); } //this._extraFieldsJsonString = Utils.JSONSerializer.Serialize(this.ExtraFields); base.Save(); string sql = String.Format("UPDATE DataCollection SET ModifiedDate=NOW() WHERE ID='{0}'", DataCollection.ID); DataBase.Get().Execute(sql); }