Skip to main content

ASPxPopupControlBase.HeaderText Property

Gets or sets the text content of a window’s header.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public string HeaderText { get; set; }

Property Value

Type Default Description
String "Header"

A string value that specifies a window’s header text.


Use the HeaderText property to specify the text displayed within a window’s header. The position of the text within the header is specified by the AppearanceStyleBase.HorizontalAlign and AppearanceStyleBase.VerticalAlign properties available via a window’s ASPxPopupControl.HeaderStyle (PopupControlStyles.Header for ASPxDockPanel) or PopupWindow.HeaderStyle property.

If a specific navigation location is assigned for a window’s header (via either the ASPxPopupControlBase.HeaderNavigateUrl or PopupWindow.HeaderNavigateUrl property), the window’s header text set by the HeaderText property serves as a link. It’s underlined, and a click on it navigates the application to the specified location.


If the ASPxPopupControl.Windows collection is empty, the HeaderText property is applied to the default popup window. Otherwise, the HeaderText property specifies a common header text for all popup windows from the ASPxPopupControl.Windows collection. In this case, the HeaderText property’s value can be overridden by using the PopupWindow.HeaderText property of individual windows.


This example illustrates how to customize an ASPxPopupControl’s header container using particular properties.

Popup control with custom header

<dx:ASPxButton ID="ASPxButton1" runat="server" Text="Show PopUp" AutoPostBack="false">
    <ClientSideEvents Click="function (s,e) {popup.Show();}" />

<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="popup"
    ShowHeader="true" HeaderText="Directed by: Ridley Scott"
    <HeaderImage Url="Images/new.png" AlternateText="No image">
    <HeaderStyle ForeColor="#666677" Font-Size="12px" />
    <ContentStyle ForeColor="#666677" Font-Names="Tahoma" Font-Size="10px" />
        <dx:PopupControlContentControl runat="server">
            <div >
                When a Roman general is betrayed and his family murdered by a corrupt prince, he
                comes to Rome as a gladiator to seek revenge.</div>
See Also