[置顶] Asp.net 获取服务器指定文件夹目录文件,并提供下载

摘要: string dirPath = HttpContext.Current.Server.MapPath("uploads/"); if (Directory.Exists(dirPath)) { //获得目录信息 ... 阅读全文
posted @ 2015-01-29 10:58 技术引领未来-李亮 阅读(3029) 评论(0) 推荐(1) 编辑

应用Aspose.Cells导入文件Execl

摘要: 1.应引用Aspose.Cells.dll类 阅读全文
posted @ 2017-07-18 11:49 技术引领未来-李亮 阅读(77) 评论(0) 推荐(0) 编辑

上传多张图片用Session临时存储

摘要: DataTable dtImages = new DataTable(); string filepath = FileUpload1.PostedFile.FileName; //检查是否有文件要上传 if (this.Fi... 阅读全文
posted @ 2015-01-31 17:17 技术引领未来-李亮 阅读(284) 评论(0) 推荐(0) 编辑

多行文本显示网页正常显示

摘要: /// /// 多行文本显示到LABEL时使用 /// /// /// public static string huanhang(string value) { return value.Replace("\r\n", "").Replace... 阅读全文
posted @ 2015-01-31 17:12 技术引领未来-李亮 阅读(92) 评论(0) 推荐(0) 编辑

Asp.net 获取图片列表并打包下载

摘要: 先引用:ICSharpCode.SharpZipLib.dll后台代码:using System.IO;using ICSharpCode.SharpZipLib.Zip;using ICSharpCode.SharpZipLib.Checksums;using ICSharpCode.SharpZ... 阅读全文
posted @ 2015-01-31 17:06 技术引领未来-李亮 阅读(522) 评论(1) 推荐(0) 编辑