WebZone::EmptyZoneText Property
Gets or sets a message that appears when a zone contains no controls.
Assembly: System.Web (in System.Web.dll)
public: virtual property String^ EmptyZoneText { String^ get (); void set (String^ value); }
<asp:WebZone EmptyZoneText="String" />
Property Value
Type: System::StringA string containing the message that appears in an empty zone. A default culture-specific string is supplied by the .NET Framework.
The text in the EmptyZoneText property appears when there are no controls in a zone, and the zone is in one of the personalization modes, such as edit, design, or catalog mode.
Note |
|---|
When a zone enters one of the personalization modes that would allow personalization changes to be made to the zone's contents, the WebPartManager control sets the WebPartDisplayMode::AllowPageDesign property value to true on the display mode object referenced in its WebPartManager::DisplayMode property. |
The following code example demonstrates the use of the EmptyZoneText property. Note that there are two zones in the declarative markup, and the second <asp:webpartzone> element is empty.
In a browser, you can switch to design mode to see the text supplied for the EmptyZoneText property displayed in the empty zone. For details on how to change page display modes, see Walkthrough: Changing Display Modes on a Web Parts Page.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note