I'm developing a page in asp.net/C# that displays files and HTML pages from a db. When viewing these files I want to have a header strip with a logo and a download file button, then the file itself below.
The VAST majority of these files will be HTML/text pages but some may be PDFs or .docx files. I just want a common header bar for all document types.
I don't really know how to add the header bar to a pdf. Here is my code to display a PDF:
Response.Clear();
Response.ContentType = "application/pdf";
Response.BinaryWrite(GetPdf());
How do I add HTML above the BinaryWrite() part? Do I need to use iframes; I know they're frowned upon, but I don't have any other ideas?