[CLOSED] String value interpreted as ID

  1. #1

    [CLOSED] String value interpreted as ID

    Hi,
    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 is
    Ext.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
  2. #2
    Hello @moldeveloper!

    That's actually a feature of Ext.NET. You can disable it if you want. Please refer to this forum thread that already discussed this:

    ${org substring is expanded to Ext.select("org... in MVC app.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello again, @moldeveloper!

    It's been some time since we replied you, and still no feedback from you. Do you still need help with this issue?

    We may be marking this thread as closed if you don't post a follow-up in 7+ days from now, but that won't prevent you from posting again when you feel like.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 3
    Last Post: Mar 10, 2016, 10:45 PM
  2. Replies: 15
    Last Post: Sep 12, 2013, 6:01 AM
  3. Replies: 1
    Last Post: Feb 28, 2011, 8:13 AM
  4. Replies: 4
    Last Post: Feb 01, 2011, 11:54 AM
  5. Replies: 3
    Last Post: Nov 12, 2008, 5:16 AM

Posting Permissions