SyntaxFix
Write A Post
Hire A Developer
Questions
In ASP.net MVC, you can use a FileContentResult and the File method:
FileContentResult
File
public FileContentResult DownloadManifest() { byte[] csvData = getCsvData(); return File(csvData, "text/csv", "filename.csv"); }