/// <summary> /// /// </summary> /// <param name="tableName"></param> /// <param name="id"></param> /// <param name="sender"></param> public void DeleteAttackFile(string tableName, int id, Hidden sender) { // xóa trong csdl SQLHelper.ExecuteTable( SQLManagementAdapter.GetStore_DeleteFileScan(tableName, id)); DeleteFile(sender.Text); }
public void DeleteTepTinDinhKem(string tableName, int id, Hidden sender) { // xóa trong csdl SQLHelper.ExecuteTable( SQLManagementAdapter.GetStore_DeleteFileScan("hr_BusinessHistory", Convert.ToInt32(hdfKeyRecord.Text))); // xóa file trong thư mục var serverPath = Server.MapPath(sender.Text); if (Util.GetInstance().FileIsExists(serverPath) == false) { Dialog.ShowNotification("Tệp tin không tồn tại hoặc đã bị xóa !"); return; } File.Delete(serverPath); }