HTML Editor for ASP.NET AJAX
CreateDialogInfo Event
Server ReferenceWinthusiasm.HtmlEditorHtmlEditorCreateDialogInfo
Event handler called before the dialogs are created.
Declaration Syntax
C#
public event HtmlEditor..::.CreateDialogInfoEventHandler CreateDialogInfo
Remarks
This event allows the developer to modify the dialog information before the dialog web controls are created. The HtmlEditor..::.CreateDialogInfoEventArgs object passed to the event handler includes a public method to insert a custom dialog.

The HtmlEditor..::.CreateDialogInfoEventArgs object passed also includes a public Dialogs property, enabling more complex modification of dialog information.

Examples
Event handler:
CopyC#
protected void Editor_CreateDialogInfo(object sender, HtmlEditor.CreateDialogInfoEventArgs e)
{
    /// Insert a custom dialog
    e.InsertCustomDialog("MyDialog", "~/MyDialog.aspx", "My Dialog", 250, 400);
}
CreateToolbarInfo code to add a custom button to display the custom dialog:
CopyC#
protected void Editor_CreateToolbarInfo(object sender,
                                        HtmlEditor.CreateToolbarInfoEventArgs e)
{
    // Insert a custom dialog button
    e.InsertDialogButton("MyDialogButton",
                         "~/Images/MyDialogButton.gif",
                         "This is my dialog button",
                         "MyDialog",
                         "Link",
                         HtmlEditor.CreateToolbarInfoEventArgs.InsertType.Before);
}

Assembly: Winthusiasm.HtmlEditor (Module: Winthusiasm.HtmlEditor) Version: 2.3.0.0 (2.3.0.0)