Ext.Net and AjaxToolkit UpdatePanel JS error

  1. #1

    Ext.Net and UpdatePanel JS error

    I have found out in EXT.NET version 2.1.1.14877 this JavaScript error.

    Error: illegal XML character
    Ext.onReady(function(){<#:anchor id="init_script" />});

    The error is raised when I use EXT.NET Resource Manager and Update Panel (NET 4.0) on the same page.
    <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
        CodeBehind="Default.aspx.cs" Inherits="WebExtNetTest._Default" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    </asp:Content>
    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <ext:ResourceManager ID="ResourceManager1" runat="server">
        </ext:ResourceManager>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Button ID="Button1" runat="server" Text="Button" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Content>
    If I click on the button JavaScript error is raised.

    I have tested the same thing with 1.2.0.21945 version of EXT.NET and it works fine and no JavaScript Error is raised.

    In http response I can see for a new version of EXT.NET {"text":"Ext.onReady(function(){\u003c#:anchor id=\"init_script\" /\u003e} - wrong
    In http response I can see for a old version of EXT.NET {"text":"Ext.onReady(function(){Ext.QuickTips.init ();} - correct
    Last edited by Tomas Voracek; Feb 22, 2013 at 11:12 AM.
  2. #2
    If this was a defect, it's possible it has been fixed. I tested the following sample with the latest code in SVN and it appears to work correctly. No errors/exceptions are thrown.

    Example

    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <asp:ScriptManager runat="server" />
            
            <asp:UpdatePanel runat="server">
                <ContentTemplate>
                    <asp:Button runat="server" Text="Button" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </form>
    </body>
    </html>
    Geoffrey McGill
    Founder & CEO
  3. #3
    Is there a possibility to release interim version with this fix? I suppose when you mean latest SVN it is Ext.NET v2.2.0 which is still under development, right? Is there some workaround for version 2.1?

    Of course, one way is to throw UpdatePanels away, but our code base is huge and it could be lot of pain dealing with other issues.
  4. #4

    The latest released version

    Hi,

    could you test it on the latest released version, please.

    Regards,
    Jozef.
  5. #5
    Quote Originally Posted by jozef.chovan View Post
    Hi,

    could you test it on the latest released version, please.

    Regards,
    Jozef.
    I believe this UpdatePanel problem was fixed recently (after the 2.1.1 release) and the fix was pushed to the SVN in preparation for the next release (2.2.0).

    The fix has been committed to SVN and unfortunately we will not be releasing another public build until the Ext.NET 2.2.0 release.
    Geoffrey McGill
    Founder & CEO
  6. #6
    Quote Originally Posted by geoffrey.mcgill View Post
    I believe this UpdatePanel problem was fixed recently (after the 2.1.1 release) and the fix was pushed to the SVN in preparation for the next release (2.2.0).

    The fix has been committed to SVN and unfortunately we will not be releasing another public build until the Ext.NET 2.2.0 release.
    Thanks Geoffrey for quick response on this. Could you please tell us what is planned release date for v2.2?

Similar Threads

  1. Replies: 3
    Last Post: Feb 12, 2013, 9:01 AM
  2. UpdatePanel bug
    By SouthDeveloper in forum 1.x Help
    Replies: 1
    Last Post: Oct 23, 2009, 4:18 PM
  3. UpdatePanel
    By Timothy in forum Bugs
    Replies: 2
    Last Post: Mar 03, 2009, 8:48 AM
  4. Replies: 0
    Last Post: Dec 30, 2008, 6:40 PM
  5. Replies: 4
    Last Post: Sep 26, 2008, 9:22 AM

Tags for this Thread

Posting Permissions