01 2015 档案

上传多张图片用Session临时存储
摘要:DataTable dtImages = new DataTable(); string filepath = FileUpload1.PostedFile.FileName; //检查是否有文件要上传 if (this.Fi... 阅读全文

posted @ 2015-01-31 17:17 技术引领未来-李亮 阅读(287) 评论(0) 推荐(0)

多行文本显示网页正常显示
摘要:/// /// 多行文本显示到LABEL时使用 /// /// /// public static string huanhang(string value) { return value.Replace("\r\n", "").Replace... 阅读全文

posted @ 2015-01-31 17:12 技术引领未来-李亮

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 技术引领未来-李亮 阅读(527) 评论(1) 推荐(0)

Asp.net 获取服务器指定文件夹目录文件,并提供下载
摘要:string dirPath = HttpContext.Current.Server.MapPath("uploads/"); if (Directory.Exists(dirPath)) { //获得目录信息 ... 阅读全文

posted @ 2015-01-29 10:58 技术引领未来-李亮 阅读(3040) 评论(0) 推荐(1)