There are 2 types of ContentMode of a WebDialogBox, which are InlineContent
and IFrame.
This topic will show you how to customize content modes.
To customize content modes
- Drag two WebDialogBox and two WebButton controls to the WebForm.
- For the second WebDialogBox, set ContentURL to any content you
want to include. For example: HTMLPage.htm.
- Use WebButton's OnClientClick client-side event to show dialog
box.
function WebButton1_OnClientClick(controlId, parameter)
{
var WebButton1 = ISGetObject(controlId);
var WebDialogBox1 = ISGetObject("WebDialogBox1");
WebDialogBox1.ShowDialog();
return true;
}
function WebButton2_OnClientClick(controlId, parameter)
{
var WebButton2 = ISGetObject(controlId);
var WebDialogBox2 = ISGetObject("WebDialogBox2");
WebDialogBox2.ShowDialog();
return true;
}
|
- Run the project.