Hi Its Shrawan fro a:m web,
In my last post i have asked u about rad ajax problem in mozilla 3.0 in radControls for asp.net not asp.net ajax,
Thankyou very much for ur reply
anyway i have installed radcontrols fro asp.net ajax and i get rid of that perticulat input string error,
But now when i am using radajaxloadingpanel controls it asked me to place radscript manager and http handler in web.config I have placed that, But now when i have clicked on any of the buttons in whichever forms i used this rascript manager i am getting following exception as an alert and i am not able continue my navigation beyond this
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 '
<!DOCTYPE html PUB'.
u can see tat error in http://globalcarbon.amwebhost.net/index.aspx goto anyof calculators on ur right side like quick,house,car etc and try to hit the button and then go to shopping_cart.aspx click on next button u will get the error instance there also,
Can u please help me how should i overcome this error,
Thak you
Hope i will get a quich solution from u, awaiting for that
Sravan@amweb.ie
6 Answers, 1 is accepted
Could you please let me know whether the problem persists if you are using regular asp ScriptManager instead of RadScriptManager?
Also please note that this is a generic ASP.NET AJAX framework error and you can take a look at the following blog post that elaborates on the matter.
Sincerely yours,
Maria Ilieva
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I am also getting the same error When on button click I am opening a download dialogue to download a file.the C# code for which is as follwing:
Response.ClearHeaders();
Response.ClearContent();
Response.Buffer =
true;
Response.AddHeader(
"Content-Disposition", "attachment; filename=" + file.Name);
Response.AddHeader(
"Content-Length", file.Length.ToString());
Response.ContentType =
"application/octet-stream";
Response.TransmitFile(FilePath);
Response.Flush();
The error I get is some thing like this:"sys.WebForms.PageParseManagerParseErrorException"The message received from the
server could not be parsed. Common causes for the error are when response is
modified by calls to Response.write(), reponse.filters or server trace is enabled
Details" error parsing near 'PK.."
Well the solution suggested on the link provided by you is valid when we use Ajax Updatepanel.And it says that we just need to keep the Button triggering the asyncronous post back outside the Updatepanel. but I am using Radajaxmanager and even If I dont ajaxify the Button I am still getting the error.
how do I simply synchronously submit the page on Button click and initiate the downlaod of a file.
Regards,
Deepak
I got the solution. With the help of a javascript I am explicilty posting back the entire page and then the problem with download wouldnt appear.
Something like this would help:
function mngRequestStarted(ajaxManager, eventArgs)
{
//Disable Ajax when doing an excel export, and force a full post back
if (eventArgs.get_eventTarget().indexOf("btnDownload") != -1) {
eventArgs.set_enableAjax(
false);
}
}
And we can initiate like this:
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStarted">
Regards,
Deepak
I think it's time to rethink allow full post-backs.
Can you please elaborate a bit more on your scenario and present the page markup and the related code behind that is leading to the described error?
As the error can appear in various scenarios it will be best to provide some more information so that we can easily isolate the root cause of the issue.
Regards,
Maria Ilieva
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.