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

Using RadAjaxManager to exclude a button from being ajaxified

4 Answers 418 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ruben Sutcliffe
Top achievements
Rank 1
Ruben Sutcliffe asked on 19 Apr 2008, 02:59 PM
I have a page with a few buttons contained in a panel. The buttons will initially be invisible but after some user actions, some of the buttons will be visible. I'm using RadAjaxManager to ajaxify the panel so that the buttons can be visible/invisible.

But one of my buttons need to trigger a downloading of a file, and I need to do a response.write. I did not ajaxify that button, so I assume that it should do a normal non-ajax postback when clicked but it is not working, because I get an ajax error -

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed

So this means that even though I did not ajaxify that button, but because that button was participating in an ajax response (due to it being invisible then visible) triggered by another control, it became ajaxified??

I have read your documentation on "Exclude controls from ajaxifying" but that only mentioned using RadAjaxPanel. I am using RadAjaxManager. So how do I make it work?

I only got this problem with Prometheus, I used to use the Q1 2007 Asp.Net controls and they work fine.

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Apr 2008, 06:31 AM
Hello Ruben,

Please check this example for more info how to achieve this:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Manager/PartialPostBacks/DefaultCS.aspx

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ruben Sutcliffe
Top achievements
Rank 1
answered on 22 Apr 2008, 03:38 AM
Thank you, I've done what the example said and added the __dopostback to the onclientclick event of that button. I can now download the file properly.

but the javascript error still appears. Is there any way I can avoid seeing this error?

    description: "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 '"Code","Name","Depar'."
    message: "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 '"Code","Name","Depar'."
    name: "Sys.WebForms.PageRequestManagerParserErrorException"
0
Steve
Telerik team
answered on 22 Apr 2008, 07:53 AM
Hi Ruben,

This is a generic ASP.NET AJAX framework error. Please take a look at the following blog post that elaborates on the matter.

All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Vasudha
Top achievements
Rank 1
answered on 19 Aug 2016, 08:30 PM

Hey,

I am having the exact same problem.

Can you please sharewhat exactly you have done to avoid the problem?

 

Thanks

Vasudha

Tags
Ajax
Asked by
Ruben Sutcliffe
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ruben Sutcliffe
Top achievements
Rank 1
Steve
Telerik team
Vasudha
Top achievements
Rank 1
Share this question
or