This documentation is archived and is not being maintained.

PageCatalogPart.Title Property

Gets or sets the title that appears in the control's title bar.

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

public override string Title { get; set; }
<asp:PageCatalogPart Title="String" />

Property Value

Type: System.String
A string that is used as the title of the control. The default value is a calculated control name supplied by the Web Parts control set.

The Title property value is displayed in the title bar of a PageCatalogPart control when the control is visible in catalog mode. When the control is declared in a page, you can set a value for the property by using the Title attribute. If you do not supply a value for the title, a culture-specific default value is used to describe the kind of properties that this control allows users to edit.

The following code example demonstrates the declarative use of the Title property. For the full code required to run the example, see the Example section of the PageCatalogPart class overview.

The following source code shows how to set the Title property on the control in declarative markup. If you do not set the property, or if you assign an empty string (""), a default title is supplied.

<asp:CatalogZone ID="CatalogZone1" runat="server">
    <asp:PageCatalogPart ID="PageCatalogPart1" runat="server" 
      Title="My Page Catalog" 
      ChromeType="Titleonly" />
    <asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1"  
      Description="Contains a user control with Web Parts and 
        an ASP.NET Calendar control.">
        <asp:Calendar ID="Calendar1" runat="server" 
          Title="My Calendar" 
          Description="ASP.NET Calendar control used as a personal calendar." />
          title = "User Information WebPart"
          Description ="Contains custom, editable user information 
            for display on a page." />
          title = "Text Display WebPart" 
          Description="Contains a label that users can dynamically update." />

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.

.NET Framework

Supported in: 3.5, 3.0, 2.0