代码改变世界

随笔档案-2009年12月

c#网页中输出txt文件。

2009-12-28 17:11 by Lecone.JY.HU, 645 阅读, 收藏, 编辑
摘要: System.Text.StringBuilder sb = new System.Text.StringBuilder();sb.Append("企业编号(企业标识)|AP编号|开始时间|结束时间|备注|金额(分)\r\n");string outname="outdown.txt";Response.ContentType = "application/octet-stream"; Response.AppendHeader("content-disposition", string.Format(" 阅读全文
的风格风格
点击右上角即可分享
微信分享提示