How to upload a PDF file on a site page using C #
1 answer
This is how you send the file to the browser.
http://support.microsoft.com/kb/306654
private void Page_Load(object sender, System.EventArgs e)
{
//Set the appropriate ContentType.
Response.ContentType = "Application/pdf";
//Get the physical path to the file.
string FilePath = MapPath("acrobat.pdf");
//Write the file directly to the HTTP content output stream.
Response.WriteFile(FilePath);
Response.End();
}
+3
a source to share