c#导出文件,下载文件,命名下载后的文件名

Page.Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(Path.GetFileName(filePath), System.Text.Encoding.UTF8));

想要下载后文件显示什么文件名,在filename= 这里设置

posted @ 2017-07-20 11:18  公子苏苏苏  阅读(758)  评论(0编辑  收藏  举报