Hello,
I keep having this error with a radgrid (ajaxified with a RadAjaxManager) : Uncaught Sys.WebForms.PageRequestManagerParserErrorException: 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 '%PDF-1.4
On the Radgrid I ve a button to open / generate a pdf coming from a database. I know the issue is coming from the Response.(), to open the pdf I ve to do something like that:
Response.Clear()
Response.ContentType = "application/pdf"
Response.AddHeader("Content-Disposition", "attachment; filename=MyPdfFile.pdf")
Response.BinaryWrite(binaryFieldPdf.ToArray)
Response.End()
How could I avoid this error using ajax and still have a Response() in my function?
I keep having this error with a radgrid (ajaxified with a RadAjaxManager) : Uncaught Sys.WebForms.PageRequestManagerParserErrorException: 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 '%PDF-1.4
On the Radgrid I ve a button to open / generate a pdf coming from a database. I know the issue is coming from the Response.(), to open the pdf I ve to do something like that:
Response.Clear()
Response.ContentType = "application/pdf"
Response.AddHeader("Content-Disposition", "attachment; filename=MyPdfFile.pdf")
Response.BinaryWrite(binaryFieldPdf.ToArray)
Response.End()