[CLOSED] Illegal string was specified when DirectMethod rerendering a <style> section in an htmlbin with a Remark

  1. #1

    [CLOSED] Illegal string was specified when DirectMethod rerendering a <style> section in an htmlbin with a Remark

    <HtmlBin>
        <style type="text/css">
     /*
            .Test { padding:4px 0 4px 0; } 
    */
            .GTest2 { background-color:#DFE8F6; }
        </style>
    </HtmlBin>

    Exception occurs in ResourceManager.registerCssClass because it does not know how to handle the remark.


    Interestingly, while I was walking through the stack, I found that the eval was handling certain scenarios of javascript with line-breaks in the proper places. I've added notes to http://forums.ext.net/showthread.php...-property-list
    Last edited by Daniil; Jan 30, 2014 at 3:04 AM. Reason: [CLOSED]
  2. #2
    Hi @michaeld,

    Thank you for the report! We are investigating.

    Here is a full test case.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void ReRender(object sender, DirectEventArgs e)
        {
            this.Container1.ReRender();
        }
    </script>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:Container ID="Container1" runat="server">
                <HtmlBin>
                    <style type="text/css">
                        /*
                        .Test { padding:4px 0 4px 0; }
                        */
                        .GTest2 { background-color:#DFE8F6; }
                    </style>
                </HtmlBin>
            </ext:Container>
            <ext:Button runat="server" Text="ReRender" OnDirectClick="ReRender" />
        </form>
    </body>
    </html>
  3. #3
    Fixed in SVN

Similar Threads

  1. Replies: 4
    Last Post: Dec 10, 2013, 2:52 AM
  2. Replies: 0
    Last Post: Aug 16, 2013, 7:28 AM
  3. [CLOSED] bottom section of page loads into the top section
    By Fahd in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 07, 2013, 7:11 PM
  4. Replies: 2
    Last Post: Oct 01, 2012, 8:16 AM
  5. Replies: 12
    Last Post: Mar 24, 2011, 5:38 PM

Posting Permissions