ASP.NET stream content from memory and not from file

前端 未结 4 525
失恋的感觉
失恋的感觉 2020-12-18 16:15

The users have requested the option to \"download\" a csv file representation of GridView contents. Does anyone know how to do this without saving the file to the server bu

4条回答
  •  爱一瞬间的悲伤
    2020-12-18 16:57

    I have used the RKLib export library a few times to great effect, this uses a memory stream and can be given any datatable which it will export as a csv download:

    http://www.codeproject.com/KB/aspnet/ExportClassLibrary.aspx

提交回复
热议问题