您的位置:首页 > 其它

用Response将字符串输出到文本(弹出文件下载框)

2008-07-21 14:27 369 查看
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();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐