Table of Contents
Dialog Properties

The properties of the Dialog class are listed below. For a complete list of Dialog class members, see the Dialog Members topic.

Properties
Name Description
AcceptButton Gets or sets the ID of a button on the content or footer area of a dialog that can be used to close the dialog and set the return result of the dialog.
AcceptButtonPostBack Gets or set a value indicating whether clicking AcceptButton causes the page to post back.
AccessKey (inherited from WebControl) 
ActivateOnClick Gets or sets a boolean indicating if a modeless dialog should be activated when user clicks on it. This property does not apply to modal dialogs.
Adapter (inherited from Control) 
AllowMove Gets or sets a boolean indicating if a Dialog can be moved. Default is true.
AllowResize Gets or sets a boolean indicating if a Dialog can be resized. Default is false.
AnchorElementID Specifies the anchor element's ID at which the dialog displays.
AppRelativeTemplateSourceDirectory (inherited from Control) 
Attributes (inherited from WebControl) 
BackColor (inherited from WebControl) 
BackShadeColor Specifies the shade of color for the background when a modal dialog is active.
BackShadeOpacity Gets or sets the opacity level for the BackShade color.
BorderColor (inherited from WebControl) 
BorderImages (inherited from WebControl) Provides a list of images used to create customized borders for the control.
BorderStyle (inherited from WebControl) 
BorderWidth (inherited from WebControl) 
CancelButton Gets or sets the ID of a button on the content or footer area of a dialog that can be used to close the dialog and set the return result of the dialog.
CancelButtonPostBack Gets or set a value indicating whether clicking CancelButton causes the page to post back.
ChildControlsCreated (inherited from Control) 
ClientID (inherited from Control) 
ClientIDMode (inherited from Control) 
ClientIDSeparator (inherited from Control) 
ClientSideOnAccept Specifies the name of the client side JavaScript function to be executed when the button that is specified by AcceptButton property is clicked.
ClientSideOnCancel Specifies the name of the client side JavaScript function to be executed when the button that is specified by CancelButton property or the close button located at dialog's header area is clicked.
ClientSideOnEnd Specifies the name of the client side JavaScript function to be executed when the dialog closes.
ClientSideOnError (inherited from WebControlBase) Gets or sets the name of the JavaScript function that is called when an error occurs on client side.
ClientSideOnEvalVar (inherited from WebControl) Specifies the name of client side JavaScript function which is called when a variable needs to be evaluated in a client template.
ClientSideOnInitDialog Specifies the name of the client side JavaScript function to be executed right before a dialog is displayed.
ClientSideOnLoad (inherited from WebControlBase) Gets or sets the name of the JavaScript function that is called when the control is loaded on the client side.
ClientSideOnMessage (inherited from WebControlBase) Gets or sets the name of the JavaScript function that is called when the control displays a message.
ClientSideOnMinimize Specifies the name of the client side JavaScript function to be executed when the minimize button located at dialog's header area is clicked.
ClientSideOnRestore Specifies the name of the client side JavaScript function to be executed when the restore button located at dialog's header area is clicked.
ClientSideOnUnload (inherited from WebControlBase) Gets or sets the name of the JavaScript function that is called when the control is unloaded on the client side.
CloseButtonUrl Gets or sets the URL of the dialog's close button.
CloseEffect Gets or sets the Effect object that controls the effect when closing a dialog.
ConfineElementID Gets or sets the ID of the confining element which defines the boundary the dialog can be displayed. Once set, the dialog cannot be moved or resized outside of the boundary of the confining element.
ContentContainer Returns the container control for the content template.
ContentFrameStyle Gets or sets the style of the frame that hosts ContentUrl.
ContentHtml Specifies the HTML to be displayed in a dialog's content area.
ContentStyleActive Gets or sets the style for the content area of a Dialog when it is active.
ContentStyleInactive Gets or sets the style for the content area of a Dialog when it is inactive.
ContentTemplate Gets or sets the template for the content area.
ContentUrl Gets or sets the URL to be displayed in content area.
Context (inherited from Control) 
Controls (inherited from Control) 
ControlSkinID (inherited from WebControl) Specifies the ID of the skin used by this control.
ControlStyle (inherited from WebControl) 
ControlStyleCreated (inherited from WebControl) 
CssBlock (inherited from WebControl) Specifies the CSS style definition used by this control.
CssClass (inherited from WebControl) 
CssFile (inherited from WebControl) Specifies the path of an external CSS file that provides CSS styles used by this control.
DataItemContainer (inherited from Control) 
DataKeysContainer (inherited from Control) 
DesignMode (inherited from Control) 
DesignOptions (inherited from WebControl) Contains options used for design time preview.
Enabled (inherited from WebControl) 
EnableKeyboardNavigation (inherited from WebControl) Gets or sets a value indicating whether keyboard navigation should be enabled.
EnableTheming (inherited from WebControl) 
EnableViewState (inherited from Control) 
Events (inherited from Control) 
Font (inherited from WebControl) 
FooterContainer Returns the container control for the footer template.
FooterHtml Specifies the HTML to be displayed in a dialog's footer area.
FooterStyleActive Gets or sets the style of the footer area when the dialog is active.
FooterStyleInactive Gets or sets the style of the footer area when the dialog is inactive.
FooterTemplate Gets or sets the template for the footer area.
ForceSSL (inherited from WebControl) Gets or sets a value indicating whether the server should work as if it were always running on a secure server (https).
ForeColor (inherited from WebControl) 
HasAttributes (inherited from WebControl) 
HasChildViewState (inherited from Control) 
HeaderHtml Gets or sets the HTML of a dialog's title which is displayed at the dialog's header area.
HeaderHtmlFormat String used to format HeaderHtml before it is used.
HeaderImageHeight Gets or sets the header image height.
HeaderImageUrl Gets or sets the Dialog's header image URL.
HeaderStyleActive Gets or sets the style of the header area of a Dialog when it is active.
HeaderStyleInactive Gets or sets the style of the header area of a Dialog when it is inactive.
Height Gets or sets the height of the dialog.
HorizontalAlign Specifies how UI elements specified in ContentTemplate or ContentHtml are aligned horizontally.
IconUrl Gets or sets the Dialog icon's URL.
ID (inherited from Control) 
IdSeparator (inherited from Control) 
ImageBaseDirectory (inherited from WebControl) Gets or sets the folder that contains images for the control.
InitialState Specified the state of a dialog when the page contains the dialog is just loaded.
IsChildControlStateCleared (inherited from Control) 
IsEnabled (inherited from WebControl) 
IsModal Gets or sets a value indicating whether the default displaying mode for the dialog is modal.
IsTrackingViewState (inherited from Control) 
IsViewStateEnabled (inherited from Control) 
LoadViewStateByID (inherited from Control) 
MaxHeight Gets or sets the maximum height of the dialog.
MaxWidth Gets or sets the maximum width of the dialog.
MinHeight Gets or sets the minimum height of the dialog.
MinimizeButtonUrl Gets or sets the URL of the dialog's minimize button.
MinWidth Gets or sets the minimum width of the dialog.
NamingContainer (inherited from Control) 
OffsetX Gets or sets the horizontal offset (in pixel) between the position of the page element specified at AnchorElementID property, and the position the dialog will display.
OffsetY Gets or sets the vertical offset (in pixel) between the position of the page element specified at AnchorElementID property, and the position the dialog will display.
Parent (inherited from Control) 
RenderingCompatibility (inherited from Control) 
ResizeImageUrl Gets or sets the URL of the image that is used to indicate the dialog is resizable.
RestoreButtonUrl Gets or sets the URL of the dialog's restore button.
RightToLeft (inherited from WebControl) Gets or sets a value indicating whether the control should renders as right to left.
SaveLocation Gets or sets a value indicating whether the dialog should save its location after the dialog is closed.
ShadowColor Gets or sets the color of the shadow of a Dialog.
ShadowDepth Gets or sets the depth (in pixel) of the shadow of a Dialog.
Shortcut (inherited from WebControl) Get a Shortcut object through which you can get or set the keyboard short cut for this control.
ShowButton Gets or sets the ID of a button that would display the dialog when clicked.
ShowDirection Specifies the direction when showing the dialog. Only applies when AnchorElementID is specified.
ShowEffect Gets the Effect object that controls the effect to show a dialog.
Site (inherited from Control) 
SkinID (inherited from WebControl) 
Style (inherited from WebControl) 
SupportsDisabledAttribute (inherited from WebControl) 
TabIndex (inherited from WebControl) 
TagKey (inherited from WebControl) 
TagName (inherited from WebControl) 
TemplateControl (inherited from Control) 
TemplateSourceDirectory (inherited from Control) 
ToolTip (inherited from WebControl) 
TopMost Gets or sets a value indicating whether the dialog should be top most.
UniqueID (inherited from Control) 
ValidateRequestMode (inherited from Control) 
VerticalAlign Specifies how UI elements specified in ContentTemplate or ContentHtml are aligned vertically.
ViewState (inherited from Control) 
ViewStateIgnoresCase (inherited from Control) 
ViewStateMode (inherited from Control) 
Visible (inherited from Control) 
Width (inherited from WebControl) 
See Also