Hi!
I have the same problem:
My asp:ImageButton is inside a telerik:RadAjaxManager and do the same code:
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ClearHeaders();
HttpContext.Current.Response.AddHeader( "content-disposition", string.Format( "attachment; filename={0}", "ElencoCandidati.xls" ) );
HttpContext.Current.Response.ContentType = "application/ms-excel; charset=utf-8";
HttpContext.Current.Response.Write( wResult );
HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();
Without the telerik:RadAjaxManager work fine but when i run my website with a telerik:RadAjaxManager I have the same error:
Line: 938
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 '<html xmlns:o="urn:s'.
What can I do?
Thanks in advance!
Francesco
I have the same problem:
My asp:ImageButton is inside a telerik:RadAjaxManager and do the same code:
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ClearHeaders();
HttpContext.Current.Response.AddHeader( "content-disposition", string.Format( "attachment; filename={0}", "ElencoCandidati.xls" ) );
HttpContext.Current.Response.ContentType = "application/ms-excel; charset=utf-8";
HttpContext.Current.Response.Write( wResult );
HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();
Without the telerik:RadAjaxManager work fine but when i run my website with a telerik:RadAjaxManager I have the same error:
Line: 938
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 '<html xmlns:o="urn:s'.
What can I do?
Thanks in advance!
Francesco