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

PageRequestManagerParserErrorException

1 Answer 78 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 17 Sep 2009, 04:16 PM
Periodically, when an AjaxRequest is made on the page I get the following error:

[Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes .....  Details: Error parsing near 'play:none;"></span>|<html>
    <head>
'.]

I am using version "RadControls_for_ASP[1].NET_AJAX_2009_2_826_dev.msi".

Thanks in advance for any help.

My code snippet.....

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript"> 
        var ajaxmanager; 
        function pageLoad() 
        { 
            ajaxmanager = $find('<%= Master.FindControl("RadAjaxManager1").ClientID %>');
        }
       
        function openWin()
        {
            var oWnd = radopen("AccountSearch.aspx", "rwAcctSearch");
            oWnd.setSize (360, 160);
            oWnd.maximize();
            oWnd.restore();               
            oWnd.center();
            oWnd.set_title("Account Number");
            // remove the handler each time or it will get called
            //  an additional time for each successive close event
            oWnd.remove_close(OnClientClose);
            oWnd.add_close(OnClientClose);
        }
       
        function OnClientClose(oWnd,args)
        {
            // get the transferred arguments
            var arg = args.get_argument();
           
            if(arg)
            { 
                // trim value
                var acntNbr = arg.acntNbr.replace(/^\s+|\s+$/g,"");
                ajaxmanager.ajaxRequest(acntNbr);
            }
        }
       
        </script>    
    </telerik:RadCodeBlock>
   
    <input id="btnSendRfn" type="button" style="width: 225px; font-size: x-small;"
         value="Send RFN" onclick="openWin(); return false;" />
       
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
        VisibleOnPageLoad="false" ShowContentDuringLoad="false"
        ReloadOnShow="true" VisibleStatusbar="false">
        <Windows>
            <telerik:RadWindow ID="rwAcctSearch" runat="server" Modal="true"
                 Behaviors="Close">
            </telerik:RadWindow>
        </Windows>   
    </telerik:RadWindowManager>  
   
</asp:Content>

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 22 Sep 2009, 12:59 PM
Hello Stephen,

What I can assume based on teh provided information is that you are trying to use a method which is not supported in an AJAX scenario, e.g the Response.Write method. If so, please note that there are methods which teh standard MS AJAX dioes not support and this is not directly related to RadControls but to general ASP.NET and MS AJAX concepts.

You can find the above mentioned methods in teh following msdn article:

http://msdn.microsoft.com/en-us/library/bb386454.aspx

in the Properties and Methods not Supported During Asynchronous Postbacks section.

Let me know whether this was the problem in your case. You can also test whether the problem disappears if you disable AJAX (e.g simply set EnableAjax="false" for the RadAjaxManager for the test).

Greetings,
Svetlina
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.
Tags
Window
Asked by
Stephen
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or