I have attachments that are stored in the database. I have a repeater that shows the attachments and when the click the link, I want the file to open.
I am getting the following error:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '???'.
The code I am using is here:
With Me.Response
.ClearContent()
.ContentType = "application/unknown"
.AddHeader("Content-Disposition", "inline; attachment=" & eAttachment.AttachmentName)
.BinaryWrite(eAttachment.AttachmentImage)
.Fl ...
Go to the complete details ...