[OPEN] Invalid Label Error

  1. #1

    [OPEN] Invalid Label Error

    I'm getting an error for a ViewPort page I'm running on Mono. The page renders okay on ASP.NET.

    I'm using the ViewPort control page on the Coolite Examples site.

    In Firefox, I'm getting a generic Invalid Label error and on Internet Explorer, I get a Expected ';'

    I have tried the CleanResourceUrl="false" and have tried the RenderStyles="None" RenderScripts="None" where I added the script and css files manually, but to no avail.

    This problem is not unique... I've had the problem before in cases where I only added just one more control to a page... And then this generic Invalid Label error.... And it only took adding one more control.

    In this case, the error occurs even when I'm only using the North pane of the BorderLayout control.
  2. #2

    RE: [OPEN] Invalid Label Error

    Hi josmar52789,

    Can you post the following three items:


    1. Make the simplest example possible that reproduces the problem and post that .aspx here.*
    2. Using ASP.NET, view the Page in IE, then view the HTML generated in the browser (View > Source) and post that html here.
    3. Repeat step #2, but use MONO.*


    I'm mainly interested in the differences in the html rendered to the browser between ASP.NET and MONO.*


    I'll run the Pages .js files through some tests to try and find any missing semi-colons (';').




    Geoffrey McGill
    Founder
  3. #3

    RE: [OPEN] Invalid Label Error

    The bug.aspx is the original code

    The aspnet_bug.txt is the source rendered in IE on ASP.NET

    The mono_bug.txt is the source rendered in IE on Mono
  4. #4

    RE: [OPEN] Invalid Label Error

    Any progress on this bug?

    I can post some other code (using other controls) that produces this same bug...
  5. #5

    RE: [OPEN] Invalid Label Error

    Hi josmar52789,

    I don't think is a matter of MONO, me too in my winbox I get the error.

    It seems that control wants Center region into design code.

    You can try this code that does not fire exception (tried in IE and FF), but don't know if it fits your need.

    
    
    <ext:ScriptManager ID="myScript1" runat="server" CleanResourceUrl="false" />
            <ext:ViewPort ID="ViewPort1" runat="server">
                <Body>
                    <ext:BorderLayout ID="BorderLayout1" runat="server">
                        <North Split="true" Collapsible="true">
                            <ext:Panel 
                                ID="Panel1" 
                                runat="server"
                                Title="North" 
                                Height="150" Width="600"
                                BodyStyle="padding:6px;"
                                Html="north">
                                <Body></Body>
                                </ext:Panel>
                        </North>
                        <Center>
                            <ext:Panel ID="Panel2" runat="server">
                                <Body></Body>
                            </ext:Panel>
                        </Center>
                    </ext:BorderLayout>
                </Body>
            </ext:ViewPort>
    Matteo


  6. #6

    RE: [OPEN] Invalid Label Error

    At the beginning of the JavaScript code on the MONO generated source, I see two blocks of code that are causing the issue:

    //<![CDATA[
    Ext.onReady(
    function(){
    Ext.QuickTips.init();
    
    {id:"Panel1",
    split:true,
    collapsible:true,
    region:"north",
    height:150,
    title:"North",
    html:"North",
    bodyStyle:"padding:6px;"}
    
    {id:"Tab2",
    title:"Tab 2",
    html:"East Tab 2",
    border:false,
    bodyStyle:"padding:6px;",
    closable:true}
    
    this.ViewPort1=new Coolite.Ext.Viewport({
    ...
    The ASP.NET generated sources it looks like this:

    //<![CDATA[
    Ext.onReady(
    function(){
    Ext.QuickTips.init();
    
    
    this.ViewPort1=new Coolite.Ext.Viewport({
    Lastly, the ASP.NET code seems to do a LazyInit for everything, while the MONO code doesn't.

    ASP.NET has the following line:
    Coolite.Ext.lazyInit(["Panel1"]);
    MONO has everything, so it's not deferred.


    -MindCore

Similar Threads

  1. Replies: 2
    Last Post: Jan 18, 2012, 5:24 PM
  2. [CLOSED] Slate Theme - Invalid web resource request error
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Oct 20, 2011, 11:30 AM
  3. [CLOSED] label invalid
    By betamax in forum 1.x Legacy Premium Help
    Replies: 23
    Last Post: Jul 01, 2011, 10:45 AM
  4. [CLOSED] [1.0] Invalid Property Error in ExtJs
    By betamax in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 30, 2010, 6:16 PM
  5. Replies: 3
    Last Post: Aug 11, 2009, 12:34 PM

Posting Permissions