public Table() { FileHelper helper = new FileHelper(); this.table.AppendLine(helper.ReadFileContent(ServerInfo.GetServerPath() + @"admin\include\table.htm")); helper = null; }
public static string VersionInformation() { FileHelper helper = new FileHelper(); return helper.ReadFileContent(HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"] + "admin/vesion.ini").Trim(); }
private void DelAlbum(string Alubmid) { ShowShop.BLL.Product.ProductAlbum pabll = new ShowShop.BLL.Product.ProductAlbum(); ShowShop.Model.Product.ProductAlbum pamodel = pabll.GetModelID(Convert.ToInt32(Alubmid)); if (pamodel != null) { ChangeHope.Common.FileHelper fh = new ChangeHope.Common.FileHelper(); if (!string.IsNullOrEmpty(pamodel.OriginalAddress)) { fh.DeleteFile(Server.MapPath("~//" + pamodel.OriginalAddress)); } if (!string.IsNullOrEmpty(pamodel.ThumbnailAddress)) { fh.DeleteFile(Server.MapPath("~//" + pamodel.ThumbnailAddress)); } Response.Write(this.bindAlbum(pamodel.Productid)); } pabll.Delete(Convert.ToInt32(Alubmid)); }