Hi, I have a RadToolBar that contain Export Buttons so the user can download iCAL calendar on the page (using RadScheduler). The RadToolBar is contained inside a RadGrad which ajaxified using RadAjaxManager. Export button uses Response.Write to write an iCAL file back to the user. When click on the Export button, I got the following error message:
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 'BEGIN:VCALENDAR
I tried to use RadScriptManager.GetCurrent(page).RegisterPostBackControl(btnExportButton) or RadScriptManager.GetCurrent(page).RegisterPostBackControl( RadToolBar) both didn't work.
I tried using the following example http://www.telerik.com/community/code-library/aspnet-ajax/general/export-radgrid-content-to-excel-word-csv-pdf-with-ajax-enabled.aspx
but there is no specific example for the RadToolBar. Can anybody help bring me to light???
Thank you very much,