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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: