PDF from database problem
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I have pdf help files in a SQL-DB that has to be displayed in a webpage. The code I wrote currently opens a blank page and only once you refresh the page does the pdf display Anny sugjestions? My code: if (Request.QueryString["ID"] != null) { String ID = Request.QueryString["ID"]; Help.HelpFile objHelpFile = new Help.HelpFile(new Guid(ID)); Response.ClearContent(); Response.ContentType = "application/pdf"; Response.BinaryWrite(objHelpFile.Data); Response.Flush(); Response.End(); }