110,534
社区成员
发帖
与我相关
我的任务
分享
// .... 生成 csvString
Response.Clear();
Response.Buffer = true;
Response.Charset = "gb2312";
Response.AppendHeader("Content-Disposition", "attachment;filename=file1.csv");
Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
Response.ContentType = "text/csv";
Response.Write(csvString.ToString());
Response.End();