[CLOSED] The control with ID 'aaaaa' not found - ResourceManager.FindControlByConfigID returns NULL

  1. #1

    [CLOSED] The control with ID 'aaaaa' not found - ResourceManager.FindControlByConfigID returns NULL

    Hi

    I have problem with ResourcesManager.cs

    ResourceManager.FindControlByConfigID(this.Page, controlID, true, null);
    returns NULL in

    public void RaisePostBackEvent
    Here is simplified example :

    Default.aspx

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="MDM._Default" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Register Src="modules/FMM.ascx" TagPrefix="mod" TagName="FMM" %>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
         <title>MDM Home</title>
    </head>
    <body>
        <form id="formDesktop" runat="server" >
        <mod:FMM ID="FMMmod" runat="server" />
        <div> 
            <ext:ResourceManager ID="rmDefault" runat="server" Locale="pt-EN" Theme="Default" ViewStateMode="Enabled"/> 
                <ext:Desktop ID="Desktop1" runat="server" >   
              <Modules></Modules>   
                <StartMenu ID="StartMenu" Title="Start Menu" Icon="StarSilver" Height="370" Weight="310" >
                    <MenuItems>
                       
                    </MenuItems>
                    <ToolConfig>
                        
                    </ToolConfig>
                </StartMenu>
            </ext:Desktop>
        </div>
        </form>
    </body>
    </html>
    FMM.ascx
    <%@ Control Language="vb" AutoEventWireup="false" CodeBehind="FMM.ascx.vb" Inherits="MDM.FMM" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    
    <ext:DesktopModuleProxy ID="DesktopModuleProxy1" runat="server" >
        <Module ModuleID="FMMmod" AutoRun="false"  >
          <Launcher Text="FMM" Icon="Money" />
            <Window>
               <ext:Window id="winFMMmain" runat="server"  Width="1120" Height="575" Layout="FormLayout" Title="FMM" >
                    <Items> 
                          <ext:Button runat="server" ID="aaaaa" Text="aaaaa" Icon="Accept" Width="10">
                          <DirectEvents>
                                <Click OnEvent="aaaaa_Click" ></Click>
                            </DirectEvents>
                          </ext:Button>                
                    </Items>
               </ext:Window> 
            </Window>
        </Module>
    </ext:DesktopModuleProxy>
    FMM.ascx.vb
    Public Class FMM
        Inherits System.Web.UI.UserControl
    
        Protected Sub aaaaa_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles aaaaa.Click
            winFMMmain.Close()
        End Sub
    End Class
    I am using
    Official Ext.NET v2.0.0 release
    Hope you can help me .

    Thanks
    Last edited by Daniil; Aug 23, 2012 at 6:57 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Thanks for the report. I am not sure this scenario is possible, but we will investigate.

    Anyways, you can always use a DirectMethod instead of a DirectEvent.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,
    Anyways, you can always use a DirectMethod instead of a DirectEvent.
    I was not able to implement DirectMethod neither

    <ext:Button runat="server" ID="aaaaa" Text="aaaaa" Icon="Accept" Width="10">
                          <Listeners>
                                <Click Handler="App.direct.aa();" />
                            </Listeners>
                          </ext:Button>

    <DirectMethod()>
        Protected Sub aa()
            winFMMmain.Close()
        End Sub
  4. #4
    Any DirectMethod should be Public, not Protected.

    Hope this helps.
  5. #5
    Still not working :(
  6. #6
    Please investigate the following sample demonstrates how to call user contgrol's direct method
    https://examples2.ext.net/#/Events/D.../UserControls/
    https://examples2.ext.net/#/Events/D...thods/ID_Mode/
  7. #7
    The issue is fixed in SVN
    Now DirectEvent is executed without any exceptions
  8. #8
    Quote Originally Posted by Vladimir View Post
    The issue is fixed in SVN
    Now DirectEvent is executed without any exceptions

    it works now


    Thanks

Similar Threads

  1. Replies: 2
    Last Post: Nov 02, 2011, 7:07 AM
  2. Replies: 1
    Last Post: Sep 09, 2011, 3:00 PM
  3. Replies: 1
    Last Post: May 15, 2009, 4:51 AM
  4. [CLOSED] #{AjaxMethods} returns null
    By Steve in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 14, 2009, 7:22 AM
  5. Replies: 1
    Last Post: Mar 14, 2008, 11:47 PM

Posting Permissions