Guest User

Untitled

a guest
Jan 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Response.ContentType = "application/octet-stream";
  2. Response.AddHeader("Content-Disposition", string.Format("attachment; filename="{0}"", fileName));
  3. Response.WriteFile(filePath + fileName);
  4. Response.Flush();
  5. Response.End();
Add Comment
Please, Sign In to add comment