WebZone.HeaderText Property
Assembly: System.Web (in system.web.dll)
[LocalizableAttribute(true)] public: virtual property String^ HeaderText { String^ get (); void set (String^ value); }
/** @property */ public String get_HeaderText () /** @property */ public void set_HeaderText (String value)
public function get HeaderText () : String public function set HeaderText (value : String)
Not applicable.
Property Value
A string that contains the header text for the zone. The default is an empty string ("").The contents of a zone's HeaderText property are displayed when a Web page enters certain display modes. For example, on a page that has a WebPartZone control, the text assigned to the HeaderText property becomes visible when the page enters edit, catalog, or design mode.
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 the use of the HeaderText property. Note that there are two zones in the declarative markup, and the second <asp:webpartzone> element is empty.
In a browser, you can switch the page to design mode to see the text supplied for the HeaderText property displayed in the header area of the zone. For details on how to change page display modes, see Walkthrough: Changing Display Modes on a Web Parts Page.
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.