62,046
社区成员
发帖
与我相关
我的任务
分享
Response.Clear();
Response.Charset = "gb-2312";
Response.Buffer = true;
Response.ContentEncoding = Encoding.GetEncoding("GB2312");
Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(downloadFilename));
Response.ContentType = "application/unknown";
Response.WriteFile(filePath);
if (Response.IsClientConnected)
Response.Flush();
Response.End();