Create text file and download

前端 未结 7 1105
日久生厌
日久生厌 2020-12-14 01:08

I\'m trying to write to a text file in memory and then download that file without saving the file to the hard disk. I\'m using the StringWriter to write the con

7条回答
  •  离开以前
    2020-12-14 01:34

    This is very simple, and the answer can be seen in this Microsoft KB Article: How to write binary files to the browser using ASP.NET and C#

提交回复
热议问题