摘要: public void delfile(string path) { if (Directory.Exists(path)) { foreach (string d in Directory.GetFileSystemEntries(path)) { if (File.Exists(d)) File.Delete(d); else ... 阅读全文
posted @ 2012-08-07 11:11 隔壁王叔 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 下载功能Response.ContentType = "application/x-zip-compressed";Response.AddHeader("Content-Disposition", "attachment;filename=**.doc");string filename = Server.MapPath("~/manage/upload/**.doc");Response.TransmitFile(filename);上传功能的实现if (this.File1.PostedFile != nul 阅读全文
posted @ 2012-08-07 11:05 隔壁王叔 阅读(674) 评论(9) 推荐(0) 编辑