Page.Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(Path.GetFileName(filePath), System.Text.Encoding.UTF8));
想要下载后文件显示什么文件名,在filename= 这里设置
Page.Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(Path.GetFileName(filePath), System.Text.Encoding.UTF8));
想要下载后文件显示什么文件名,在filename= 这里设置
转载于:https://www.cnblogs.com/suxiaBlogs/p/7210211.html