[CLOSED] App is undefined

  1. #1

    [CLOSED] App is undefined

    Hello

    in my solution all controls are undefined.

    For example:

    <Items>
    <ext:TextArea ID="TextArea1" runat="server" EmptyText="[Incolla qui il testo]" AutoUpdateData="true"  />
    </Items>
    ResourceManager (in master page)
    <ext:ResourceManager runat="server" ID="resourceManager1" Theme="Neptune" ScriptMode="Debug" ShowWarningOnAjaxFailure="true" >
    is always undefined if i try to do this:
    App.TextArea1.clear()
    i've installed ext.net with NuGet package and i never override namespaces.
    i've a masterpage with resource manager and 1 child page...

    Whats wrong?

    Thanks
    Last edited by fabricio.murta; Feb 13, 2015 at 5:16 PM. Reason: [CLOSED]
  2. #2
    The problem occurs when i use master page.

    if i make sigle page it works well...
  3. #3
    Hi @maurox,

    When you use a Master Page, controls have the ContentPlaceHolderID appended to them. Thus they become ContentPlaceHolderID_ControlId

    Check the sample below:

    <asp:Content ID="sampleHeadContent" ContentPlaceHolderID="headContent" runat="server">
    </asp:Content>
    <asp:Content ID="sampleMainContent" ContentPlaceHolderID="mainContent" runat="server">
        <ext:TabPanel ID="tabPanel" Width="960" runat="server" Height="599" Padding="1">
            <Items>
                <ext:Panel ID="panel" runat="server" Title="Sample" Height="544">
                </ext:Panel>
            </Items>
        </ext:TabPanel>
    </asp:Content>
    Therefore, the TabPanel and Panel can be referred to as

    App.mainContent_tabPanel
    and

    App.mainContent_panel
  4. #4
    Ok, now it works!

    Thanks a lot!
  5. #5
    Glad to help!
  6. #6
    Hello, @maurox and @FpNetWorth;

    Glad it was resolved, it didn't even need us this time.

    Thank you very much @FpNetWorth, your help is greatly appreciated!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 2
    Last Post: May 17, 2014, 3:01 PM
  2. [OPEN] [#192] Chart axis setTitle
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 10, 2013, 6:02 PM
  3. Replies: 1
    Last Post: Jul 02, 2012, 10:00 AM
  4. Ext is undefined
    By HzA in forum 1.x Help
    Replies: 3
    Last Post: Nov 23, 2011, 7:29 PM
  5. Ext.example undefined Ext???
    By Hualin Yuan in forum 1.x Help
    Replies: 0
    Last Post: Apr 23, 2010, 2:07 AM

Posting Permissions