WebZone::HeaderText Property
Gets or sets the text for the header area of a zone.
Assembly: System.Web (in System.Web.dll)
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.