I have a pdf file being generated on the fly which I want to display inline on pageload, as below
Response.Clear()
Response.AppendHeader("Content-Disposition", "inline; filename=_Bulk_Print.pdf")
Response.ContentType = "application/pdf"
Response.BinaryWrite(docData)
Response.End()
If I put this in a click event it works perfectly but when on page load I Just get a blank aspx page despite the fact it's stepping through that code and the generation of the DocData no problem. Does anyone know the reason for this or a workaround, thanks for your help.