WebPartZoneBase.DisplayTitle Property

Definition

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

C#
[System.ComponentModel.Browsable(false)]
public virtual string DisplayTitle { get; }

Property Value

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

Attributes

Examples

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.

C#
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;
}

Remarks

The DisplayTitle property either gets its value from the base HeaderText property or, if that value is null, uses the ID value for the zone.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also