当前位置: 代码迷 >> ASP.NET >> 输出文件流有关问题
  详细解决方案

输出文件流有关问题

热度:8406   发布时间:2013-02-26 00:00:00.0
输出文件流问题
输出StringBuilder的文件流,总是一闪而过,却不提示保存,在Maxthon2中和其它机器的浏览器中却正常,实在搞不懂了

                Response.Clear()
                Response.Buffer   =   True
                Response.Charset   =   "GB2312 "
                Response.AppendHeader( "Content-Disposition ",   "attachment;filename=mcdatamdx.xls ")
                Response.Output.Write(OutStr.ToString)
                Response.Flush()
                Response.End()

------解决方案--------------------------------------------------------
OutStr.ToString 是啥
  相关解决方案