博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年5月31日

摘要: 文件下载: string filepath = Server.MapPath("~/public/file.txt"); FileInfo fi = new FileInfo(filepath); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + fi.Name); Respo... 阅读全文

posted @ 2010-05-31 16:34 gzlxm 阅读(203) 评论(0) 推荐(0)