dear Rick,
I am not able to make a dialog control, I followed your help (AJAX Controls - Modal Dialogs) to load a wwModalDialog control on the webpage:
<%@ PageLanguage="C#"ID="test_Page"
GeneratedSourceFile="test_Page.prg" %><%@ Register Assembly="WebConnectionWebControls" Namespace="Westwind.WebConnection.WebControls" TagPrefix="ww" %><!DOCTYPE html><html><head><linkhref="westwind.css"rel="stylesheet"type="text/css" /><linkhref="StyleSheet.css"rel="stylesheet"type="text/css" /><ww:wwWebLiteralrunat="server" Visible="false"><scriptsrc="~/scripts/jquery.js"type="text/javascript"></script><scriptsrc="~/scripts/ww.jquery.js"type="text/javascript"></script></ww:wwWebLiteral></head><body><formid="form1"runat="server"><ww:wwModalDialogID="wwModalDialog1"runat="server"Style="background: white; display: none;
width: 400px;"><divid="MessageBoxHeader"class="gridheader">
Header</div><divstyle="padding: 10px;"><divid="MessageBoxContent"></div><hr /><inputtype='button'id='MessageBoxOk'value='Close Dialog' /></div></ww:wwModalDialog><ww:wwWebButtonID="wwWebButton1"runat="server" Click="Test_click"Text="Test"width="80" /></form></body></html>
I would like to have a simple generic dialog, so I made a function
FUNCTION Test_click()this.wwModalDialog1.MessageBox("Html Text here<hr>More Text","Title","OK","Cancel",CallbackHandler)ENDFUNC
but I get the error: Variable "CallBackHandler" is not found.
If I remove CallbackHandler parameter then I get the error: Property Messagebox is not found.
You say in your help:
"If you don't want to design a dialog explicitly you can also create one on the fly with the static wwModalDialog.messageBox() function and the more flexible createDialog() methods."
Please how to have a generic modal dialog with OK and Cancel button, and how to get its return value?
Thank you very much