UnsecuredLayoutsPageBase.IsDialogMode property

Gets a Boolean value that indicates whether the application page is hosted inside a dialog box.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

protected internal bool IsDialogMode { get; }

Property value

Type: System.Boolean
true if the page is being hosted inside a dialog box; otherwise, false.

This property specifies whether the query string of a page contains the string "IsDlg=1". All pages hosted inside a Microsoft SharePoint Foundation 2010 dialog box contain this string, but other pages that are not hosted in a dialog box may also contain the string.

Show: