Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DisplayTitle Property

WebPartZoneBase.DisplayTitle Property

Note: This property is new in the .NET Framework version 2.0.

Gets the current value of the text being used as the title for a WebPartZoneBase zone when the zone itself is visible.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public virtual string DisplayTitle { get; }
/** @property */
public String get_DisplayTitle ()

public function get DisplayTitle () : String

Property Value

A string that contains the title text for a zone. The default is the value of the base HeaderText property.

The DisplayTitle property either gets its value from the base HeaderText property or, if that value is a null reference (Nothing in Visual Basic), uses the ID value for the zone.

The following code example demonstrates the declarative use of the DisplayTitle property on a WebPartZone control. For the full code example, including the code-behind source file and the .aspx page that contains the zone in this code, see the WebPartZoneBase class overview.

Notice that in the following code example, the DisplayTitle property value is retrieved from the partial class.

protected void Button4_Click(object sender, EventArgs e)
{
  StringBuilder builder = new StringBuilder();
  builder.AppendLine(@"<strong>WebPartZone1 DisplayTitle Property</strong><br />");
  builder.AppendLine(WebPartZone1.DisplayTitle + @"<br />");
  Label2.Text = builder.ToString();
  Label2.Visible = true;
}

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft