已经有一个函数
public static void DownloadCSV(HttpApplication application, string csvdata, string filename)
{
string strFile = string.Format("attachment;filename={0}", filename);
HttpResponse response = application.Response;
response.Clear();
response.Buffer= true;
response.AppendHeader("Content-disposition", strFile);
response.Charset = "Shift_JIS";
response.ContentType = "application/octet-stream"; response.ContentEncoding=System.Text.Encoding.GetEncoding"Shift_JIS");
response.Write(csvdata);
response.End();
}
csvdata中的数据以","隔开,
请问怎么是进行格式化,比如:一条数据占 A1,B1 2格,或A1,A2