CatalogZoneBase.EmptyZoneText Property
Assembly: System.Web (in system.web.dll)
public: virtual property String^ EmptyZoneText { String^ get () override; void set (String^ value) override; }
/** @property */ public String get_EmptyZoneText () /** @property */ public void set_EmptyZoneText (String value)
public override function get EmptyZoneText () : String public override function set EmptyZoneText (value : String)
Not applicable.
Property Value
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.
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 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.