using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using HNWD.Pregrant.WebService; using HNWD.Pregrant.Model; using System.Text; using HNWD.Pregrant.DataAccess; using HNWD.Pregrant.Common; using HNWD.Pregrant.BusinessLogic; using System.IO; namespace HNWD.Pregrant.WebService.MgrCSharp { public partial class SetWD_DelZoneFile : PageBase { protected void Page_Load(object sender, EventArgs e) { string SoundFileDir = Request.PhysicalApplicationPath + @"MP3\"; if(Directory.Exists(SoundFileDir)) { Directory.CreateDirectory(SoundFileDir); } string FileName = this.GetValueByKey("FileName"); if(string.IsNullOrEmpty(FileName) || !File.Exists(SoundFileDir + FileName)) { this.ResponseDefaultError(); return; } File.Delete(SoundFileDir + FileName); this.ResponseDefaultOk(); } } }