May 18, 2011, 6:25 AM
[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?
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.