This documentation is archived and is not being maintained.

CatalogZoneBase::EmptyZoneText Property

Gets or sets a message that appears when a zone contains no controls.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public:
virtual property String^ EmptyZoneText {
	String^ get () override;
	void set (String^ value) override;
}
<asp:CatalogZoneBase EmptyZoneText="String" />

Property Value

Type: System::String
A string containing the message that appears in an empty zone. A default culture-specific string is supplied by the .NET Framework.

The string value of the EmptyZoneText property is displayed when a Web page enters catalog mode, if the CatalogZoneBase zone contains no CatalogPart controls.

The following code example demonstrates how to use the EmptyZoneText property declaratively. For the full code required to run the example, see the Example section of the CatalogZoneBase class overview.

Notice that the code example declares two <asp:catalogzone> elements, and the second one does not declare any CatalogPart controls, though it does assign a value to the EmptyZoneText property.

No code example is currently available or this language may not be supported.

When you load the page in a browser, you can select Catalog from the drop-down list to switch to catalog display mode. When the catalog is visible, notice that below the first zone, which contains two CatalogPart controls, the second zone appears, and displays the contents of the EmptyZoneText property because it contains no controls.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Show: