用Response将字符串输出到文本(弹出文件下载框)
Response.Clear();
Response.Buffer = true;
Response.AppendHeader("Content-Disposition", "attachment;filename=123.txt");
Response.ContentType = "application/ms-txt";
Response.Output.WriteLine("0213");
Response.Output.WriteLine("1213");
Response.End();
Response.Buffer = true;
Response.AppendHeader("Content-Disposition", "attachment;filename=123.txt");
Response.ContentType = "application/ms-txt";
Response.Output.WriteLine("0213");
Response.Output.WriteLine("1213");
Response.End();