Guest User

Untitled

a guest
Oct 16th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public void ProcessRequest(HttpContext context) {
  2. string content = _TMEnvironmentService.GetEnvironInfo(context.Request);
  3.  
  4. string filename = "environment.xml";
  5. string contentDisposition = String.Format("{0}; filename=\"{1}\"", "attachment", filename);
  6. context.Response.AddHeader("Content-Disposition", contentDisposition);
  7. context.Response.Write(content);
  8. context.Response.End();
  9. }
Add Comment
Please, Sign In to add comment