in the sample code at response.end call I get a script error in my .ascx
Line: 885
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
private void WriteCalendar(string data){ HttpResponse response = Page.Response; response.Clear(); response.Buffer = true; response.ContentType = "text/calendar"; response.ContentEncoding = Encoding.UTF8; response.Charset = "utf-8"; response.AddHeader("Content-Disposition", "attachment;filename=\"RadSchedulerExport.ics\""); response.Write(data); response.End();}