摘要:
public void delfile(string path) { if (Directory.Exists(path)) { foreach (string d in Directory.GetFileSystemEntries(path)) { if (File.Exists(d)) File.Delete(d); else ... 阅读全文
摘要:
下载功能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 阅读全文