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

Error when trying to update content in ContentTemplate when using Ajax

1 Answer 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
Hans Gunnar
Top achievements
Rank 1
Hans Gunnar asked on 09 Feb 2011, 06:19 PM
I have created a simple searchbox that utilizes RadAjaxManager and RadScriptManager.

When a user enters certain search criterias and clicks the search button, the code behind will perform some checks, and if necessary show a popup with a question using RadWindow (with RadWindowManager).

The RadWindow consists of text that I need to load from the database.
I've tried both setting the text in code-behond by using the RadWindow.ContentContainer.FindControl("myLabel") and setting the text property, and by using <%# GetTextProperty %> in the template itself.

But both lead to this error shown in Internet Explorer 8 (with and without compatibility view enabled):

Line: 6
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 '  <label><font size='.

If I remove my RadAjaxManagerProxy from the page, no error is given, and RadWindow loads just fine.

In FireFox 3.6 it works just fine with and without Ajax enabled.

Here's a snippet of the RadWindow-declaration:
<telerik:RadWindow runat="server" ID="rwPPRTQuestion" Modal="true" KeepInScreenBounds="true" Width="250px"
        VisibleTitlebar="false" Behaviors="None" InitialBehaviors="None" VisibleStatusbar="false" >
        <ContentTemplate>      
            <div id="frontpagepop">
                <label><asp:Literal runat="server" ID="litRTInfo" Text='<%# InfoChooseRT %>'></asp:Literal></label>
                <br />
                <label><asp:Literal runat="server" ID="litRTQuestion" Text='<%# QuestionChooseRT %>'></asp:Literal></label>               
                <asp:RadioButtonList runat="server" ID="rblRTYesNo" RepeatDirection="Horizontal">
                    <asp:ListItem Text="<%$ Resources: EPiServer, content.booking.common.yes %>" Value="1"></asp:ListItem>
                    <asp:ListItem Text="<%$ Resources: EPiServer, content.booking.common.no %>" Value="0" Selected="True"></asp:ListItem>
                </asp:RadioButtonList>
                <div class="buttons" runat="server" id="div1">
                    <div class="buttonpop">   
                        <asp:LinkButton runat="server" ID="LinkButton1" OnClick="lbContinue_Click"><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: EPiServer, content.booking.continue %>"></asp:Literal> ยป</asp:LinkButton>
                    </div>
                </div>     
            </div>
        </ContentTemplate>
    </telerik:RadWindow>


Does anyone have any ideas what could be causing this?

Disabling Ajax is an option, but the customer will not be very happy with it...

Btw, I'm using v2009.3.1314.35 of Telerik
(since this is a part of a large solution, upgrading the Telerik components to the latest version is a big task)

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 14 Feb 2011, 01:57 PM
Hi Hans,

RadWindow's declaration looks OK, but I don't know how exactly you ajaxify the controls. Could you please provide a full sample page that isolates the problem? I would suggest to send it via the support ticketing system - this will guarantee you a timely reply.


Best wishes,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
Hans Gunnar
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or