Posted on: 10/17/2012 9:40:36 AM | Views : 439

Hello everybody, I am sorry to post a question maybe very simple to you but that is getting me crazy. I searched far and wide without finding a suitable example.
I need to display a pdf file in a content page. I would like to use asp instead of using HTML (iframe, embed, ...).
I found many example only for opening a file on a master page. By inserting the following code in the content page
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(); } in the page displayed,  I loose the master page.
Can you please teach me how to do that?
Thanks in advance 
...

Go to the complete details ...