Guest User

Untitled

a guest
Jun 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Response.AddHeader("Content-Disposition",
  2. "attachment; filename=yourfile.csv");
  3. Response.ContentType = "text/plain";
  4.  
  5. Response.BufferOutput = false;
  6.  
  7. Response.Write("field1,field2,field3rn");
  8.  
  9. Response.End();
Add Comment
Please, Sign In to add comment