Feb 20, 2013, 12:14 PM
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.
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
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.