CatalogZoneBase::SelectTargetZoneText Property
Gets or sets the text alongside the control in the catalog user interface (UI) that allows users to choose which zone to add their selected controls to.
Assembly: System.Web (in System.Web.dll)
public: virtual property String^ SelectTargetZoneText { String^ get (); void set (String^ value); }
<asp:CatalogZoneBase SelectTargetZoneText="String" />
Property Value
Type: System::StringA 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 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.