This is a migrated thread and some comments may be shown as answers.

Error when Exporting Appts.

7 Answers 98 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 07 Jan 2009, 10:24 PM
I'm getting the following error when trying to export data from the scheduler; this was working, I don't know what happened?  I copied the code from what you had on your example site directly: http://demos.telerik.com/aspnet-ajax/Scheduler/Examples/Export/DefaultCS.aspx

The difference is that this control is an updated control (in an AJAX setting) whenever another control is updated...

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 'BEGIN:VCALENDAR
VER'.

Any idea what the cause may be?

Thanks.

7 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 08 Jan 2009, 08:43 AM
Hello Brian Mains,

This error indicates that ajax is being made when the user clicks the export button instead of postback. Please check whether your are calling the Export function

<script type="text/javascript">
 function Export(sender, e)
 {
     $find("<%= RadAjaxManager1.ClientID %>").__doPostBack(sender.name, "");
 }
</script>

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Mains
Top achievements
Rank 1
answered on 08 Jan 2009, 03:14 PM
Hey,

That did work; I didn't see the JavaScript.

Thanks.
0
Kyle Jones
Top achievements
Rank 1
answered on 22 Sep 2009, 10:05 PM
I am receiving the same error but my RadAjaxManager is on my Master Page.  How do I call the Manager from my Source page so that the code will work properly?
0
Peter
Telerik team
answered on 24 Sep 2009, 01:50 PM
Hi Kyle,

Add an AJAX Manager Proxy to your source page and use it the same way you would use RadAjaxManager.


All the best,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sotir
Top achievements
Rank 1
answered on 05 Feb 2012, 12:45 AM
Hello, I am trying to perform the same thing with the difference that i have my scheduler on a "ascx" user control which i then call on a page that has a master page. I am keep getting that error. I have already a RadManagerProxy on the page but how can i use it from the control "ascx"? Is there another way to set enableAjax = false when exporting to iCalendar?

Thank you in advance.
0
Peter
Telerik team
answered on 08 Feb 2012, 02:03 PM
Hello Sotir,

You can find the client object of RadAjaxManager in the user control with the following code -

$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>")

The rest of the implementation would be the same as with the iCalendar export demo.


Greetings,
Peter
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Sotir
Top achievements
Rank 1
answered on 16 Feb 2012, 03:56 PM
Yes, that did the trick.

Thank you.
Tags
Scheduler
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Brian Mains
Top achievements
Rank 1
Kyle Jones
Top achievements
Rank 1
Peter
Telerik team
Sotir
Top achievements
Rank 1
Share this question
or