Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Response.ContentType = "application/octet-stream";
- Response.AddHeader("Content-Disposition", string.Format("attachment; filename="{0}"", fileName));
- Response.WriteFile(filePath + fileName);
- Response.Flush();
- Response.End();
Add Comment
Please, Sign In to add comment