摘要: 创建目录和文件 1、通过Path类的Combine方法可以合并路径。 2、目录的创建。 创建目录时如果目录已存在,则不会重新创建目录,且不会报错。创建目录时会自动创建路径中各级不存在的目录。 (1)通过Directory类的CreateDirectory方法创建。 (1)通过DirectoryInf 阅读全文
posted @ 2017-04-06 17:18 我在码头等你 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 打包下载压缩 using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebCon 阅读全文
posted @ 2017-04-06 10:05 我在码头等你 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1、首先读取文件夹下的文件,可能同时存在多个文件 2、选中文件,然后点击下载,同时可以选择多个文件。 思路:通过生产压缩包的形式进行下载,然后再清楚压缩包,这样用户可以一次性全部下载下来。 一、获取目录下的所有文件,然后绑定到checkboxlist中 ,代码如下: 二、选中文件后,点击下载按钮。代 阅读全文
posted @ 2017-04-06 09:43 我在码头等你 阅读(630) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Linq;using System.IO;using ICSharpCode.SharpZipLib.Zip;using ICSharpCode.SharpZipLib.Checksums;using System.Diagnostics;usin 阅读全文
posted @ 2017-04-06 09:16 我在码头等你 阅读(470) 评论(0) 推荐(0) 编辑