Mar 13, 2017, 9:37 AM
[CLOSED] String value interpreted as ID
Hi,
the following page produces an error, as the chars "${...}" inside the string are interpreted as an ID:
the following page produces an error, as the chars "${...}" inside the string are interpreted as an ID:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Extranet.Test" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager runat="server" />
<form id="form1" runat="server">
<ext:ComboBox ID="comboTest" runat="server" />
</form>
</body>
</html>
using System;
using System.Linq;
namespace Extranet
{
public partial class Test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
comboTest.Items.Add(new Ext.Net.ListItem("broken ${aaa}", "1"));
}
}
}
the resulting javascript isExt.onReady(function(){Ext.create("Ext.form.field.ComboBox",{id:"comboTest",renderTo:"App.comboTest_Container",queryMode:"local",store:[["1","broken Ext.select("aaa")"]]});});
I have no control on strings displayed (in general they are data coming from different sources, and I can't filter every string). The problem has a big impact, as the entire page is broken ad not rendered.
Last edited by fabricio.murta; Apr 21, 2017 at 5:22 PM.
Reason: no user feedback for 7+ days