SHARE
TWEET

Untitled

a guest Feb 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Response.TransmitFile(filename);
  2.    
  3. Response.ContentType = "application/pdf";
  4. Response.WriteFile(@"C:DownloadsTest.pdf");
  5. Response.Flush();
  6.    
  7. Responce.AddHeader("content-disposition","attachement;filename=name.pdf");
  8. Response.TransmitFile(filename);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top