I can see that when you insert an image, the code calls "image.axd?picture=picture.path" and the image is displayed on page at view mode.
What do I need to modify so that when I insert a PDF file, it will display the PDF at view mode?
By using the controls provided on this link (http://www.beansoftware.com/ASP.NET-Tutorials/PDF-View-Custom-Control.aspx) I can display a PDF right on Page.aspx but the path on the PDF file is hard coded. I can modify this code to make it work but I think
there is a more elegant solution.
Can someone please guide me thru adding an HTTP handler so the PDF file will display right on the Page.aspx? The way I envision this to work is like inserting an image. When I insert a PDF file on a page, the PDF file is stored in /App_Data/files/Year/Month/
folder. And then at view mode, the HTTP handler displays the PDF file.
To make it simple, when I insert a PDF file, that is all I expect to display - nothing else.