I would like to create a text file for export/download, like a *.csv, from an ASP.NET application. I know about Response.TransmitFile, but I want to do this without creating
Try this sample:
protected void Button1_Click(object sender, EventArgs e) { Response.ContentType = "text/csv"; Response.AddHeader("content-disposition", "attachment; filename=download.csv"); Response.Write("your,csv,file,contents"); Response.End(); }