导出csv文件

//客户端输入

string fileName = "csv文件.csv";
Response.Clear();
Response.Buffer = true;
Response.Charset = "UTF-8";
Response.AppendHeader("Content-disposition", "attachment;filename=\"" + fileName+"\"");
Response.ContentEncoding = System.Text.Encoding.Default;
Response.ContentType = "application/octet-stream";
Response.Write(title.ToString());
Response.End();




你可能感兴趣的:(导出csv文件)