[CLOSED] DirectMethod with empty namespace not working

  1. #1

    [CLOSED] DirectMethod with empty namespace not working

    Below code is giving js error due to empty namespace, I don't want to use the namespace, is there any workaround?


    <%@ Page Language="C#" AutoEventWireup="true" %>
    
    <script type="text/C#" runat="server">
        
        [DirectMethod]
        public void Process()
        {
            X.MessageBox.Show(
                      new MessageBoxConfig
                      {
                          Message = "hello"
                      });
        }
        
    </script>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager runat="server" Namespace="">
        </ext:ResourceManager>
        </form>
    </body>
    Last edited by Daniil; Mar 14, 2012 at 1:49 PM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    You can set DirectMethodNamespace
    <ext:ResourceManager runat="server" Namespace="" DirectMethodNamespace="Ext.net.DirectMethods" />
    Thanks for the report, we will fix the issue in next public release

Similar Threads

  1. Replies: 7
    Last Post: Aug 01, 2012, 9:40 AM
  2. [CLOSED] Namespace property in DirectMethod
    By trieu.tran in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 06, 2012, 9:35 AM
  3. DirectMethod success and failure not working
    By mtrutledge in forum 1.x Help
    Replies: 3
    Last Post: Mar 14, 2012, 1:08 PM
  4. [CLOSED] DirectMethod: UserControl in a Layer not working
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 20, 2012, 2:12 AM
  5. simple DirectMethod call not working?
    By phinoppix in forum 1.x Help
    Replies: 2
    Last Post: Jul 05, 2011, 12:12 PM

Tags for this Thread

Posting Permissions