[CLOSED] Note is always encoded

  1. #1

    [CLOSED] Note is always encoded

    The note is always shown encoded in the browser irrespective of the value for NoteEncode.
    Please see the image blow. The note is encoded when being sent to the client, and I put breakpoints to verify that noteEncode value was not serialized to the client at all.
    What this means is that the note is always encoded on the server, but if noteEncode is true, its encoded twice over.

    Click image for larger version. 

Name:	Clipboard04.png 
Views:	86 
Size:	19.6 KB 
ID:	3108
  2. #2
    Field doesn't encode the note by default

    Here is my test case
    <%@ Page Language="C#" AutoEventWireup="True" %>
    
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
        
        <script runat="server">
            protected void CreateField(object sender, DirectEventArgs e)
            {
                (new Ext.Net.TextField
                {
                    ID = "Field2",
                    Note = "See <a href='#'>Link</>"
                }).Render();
            }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager runat="server" ID="rsm1">
            </ext:ResourceManager>
            
            <ext:TextField ID="Field1" runat="server" Note="See <a href='#'>Link</>">        
            </ext:TextField>
            
            <ext:Button runat="server" Text="Render new field" OnDirectClick="CreateField">
            </ext:Button>
        </form>
    </body>
    </html>
  3. #3
    Oops sorry, it was a localization issue on our side..

Similar Threads

  1. Replies: 3
    Last Post: Jul 08, 2010, 8:48 PM
  2. [CLOSED] [1.0] ComboBox with HTML encoded data
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 20, 2010, 8:55 AM
  3. 0.82 encoded html getting decoded on store
    By [WP]joju in forum 1.x Help
    Replies: 15
    Last Post: Dec 23, 2009, 6:40 AM
  4. Replies: 3
    Last Post: Jul 14, 2009, 7:02 AM
  5. HtmlEditor sometimes text is displayed encoded
    By alexp in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 24, 2009, 2:48 PM

Posting Permissions