in this snippet:
-------------------------
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment;filename=SqlExport.csv")
---------------------------
AND
---------------------------
Response.Output.Write(csv);
---------------------------
I see the attachment being created but no location to send the attachment to.
arnololo123
ASKER
Yes this is the problem, I only want to save the file on the server hard drive and not even show it for download to the user.
-------------------------
Response.Clear();
Response.Buffer = true;
Response.AddHeader("conten
--------------------------
AND
--------------------------
Response.Output.Write(csv)
--------------------------
I see the attachment being created but no location to send the attachment to.