CatalogZoneBase.SelectTargetZoneText Property
Assembly: System.Web (in system.web.dll)
[LocalizableAttribute(true)] public: virtual property String^ SelectTargetZoneText { String^ get (); void set (String^ value); }
/** @property */ public String get_SelectTargetZoneText () /** @property */ public void set_SelectTargetZoneText (String value)
public function get SelectTargetZoneText () : String public function set SelectTargetZoneText (value : String)
Property Value
A string that contains the text to display alongside the zone selection control. A default culture-specific string is supplied by the .NET Framework.When the catalog UI first appears, users can select one of the CatalogPart controls, such as DeclarativeCatalogPart, that contains WebPart or other server controls that can be added to the Web page. The user selects one or more controls, and can then use the DropDownList control in the footer area of the catalog and choose the WebPartZone control on the page in which to place the selected server controls. The text value of the SelectTargetZoneText property is displayed alongside the DropDownList control as a simple instruction.
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.
The following code example demonstrates how to use the SelectTargetZoneText property declaratively and programmatically. For the full code required to run the example, see the Example section of the CatalogZoneBase class overview.
Notice that the first part of the code example declares two <asp:catalogzone> elements, and the first one declares a value for the SelectTargetZoneText property.
In the second part of the code example, the value of the SelectTargetZoneText property is changed programmatically.
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, note the text displayed alongside the DropDownList control in the footer of the catalog. You can click the Set Zone Text Properties button to change the text value of the property.
Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.