Confirm message handler

  1. #1

    [CLOSED]Confirm message handler

    Hi,

    I have a usercontrol ascx file which renders a confirm message on the code behind. I cant seem to be able to call the direct method. Any ideas?


     ExtNet.Msg.Confirm("Message", "Do you want to continue", new Ext.Net.MessageBoxButtonsConfig
                        {
                            Yes = new Ext.Net.MessageBoxButtonConfig
                            {
                                Handler = "DirectMethod.Overwrite();",
                                Text = "Overwrite"
                            },
                            No = new Ext.Net.MessageBoxButtonConfig
                            {
                                Handler = "DirectMethod.Append();",
                                Text = "Append"
                            },
                            Cancel = new Ext.Net.MessageBoxButtonConfig
                            {
                                Text = "Cancel"
                            }
                        }).Show();
     [DirectMethod]
            public void Overwrite()
            {
                //remove existing list
                ListManager.deleteList(Request.QueryString["sid"]);
                insertList();
            }
    Last edited by norphos; May 18, 2011 at 8:49 AM.
  2. #2

    [CLOSED]

    Quote Originally Posted by norphos View Post
    Hi,

    I have a usercontrol ascx file which renders a confirm message on the code behind. I cant seem to be able to call the direct method. Any ideas?


     ExtNet.Msg.Confirm("Message", "Do you want to continue", new Ext.Net.MessageBoxButtonsConfig
                        {
                            Yes = new Ext.Net.MessageBoxButtonConfig
                            {
                                Handler = "DirectMethod.Overwrite();",
                                Text = "Overwrite"
                            },
                            No = new Ext.Net.MessageBoxButtonConfig
                            {
                                Handler = "DirectMethod.Append();",
                                Text = "Append"
                            },
                            Cancel = new Ext.Net.MessageBoxButtonConfig
                            {
                                Text = "Cancel"
                            }
                        }).Show();
     [DirectMethod]
            public void Overwrite()
            {
                //remove existing list
                ListManager.deleteList(Request.QueryString["sid"]);
                insertList();
            }
    Resolved by stating the custom control ID after Ext.net.DirectMethods.<custom control id>.<method>
    Last edited by norphos; May 18, 2011 at 8:49 AM.

Similar Threads

  1. confirm message box problem
    By mehmood in forum 1.x Help
    Replies: 6
    Last Post: Jun 21, 2012, 1:47 PM
  2. Confirm message with wait not working
    By Mr.Techno in forum 1.x Help
    Replies: 1
    Last Post: Aug 08, 2011, 6:13 PM
  3. [CLOSED] Message box confirm dialogue handling
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Aug 07, 2009, 1:37 AM
  4. [CLOSED] confirm message problem
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 12, 2009, 5:43 AM

Posting Permissions