Skip to main content
Tab

ASPxPopupControlBase.HeaderNavigateUrl Property

Gets or sets an URL where the client’s web browser will navigate when the text or image is clicked within a window’s header.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue("")]
public string HeaderNavigateUrl { get; set; }

Property Value

Type Default Description
String String.Empty

A string value which specifies the required navigation location.

Remarks

If a specific navigation location is assigned to the HeaderNavigateUrl property, a window’s header text and header image serve as a link (the header text is displayed underlined in this instance). A click on this link navigates the application to the specified location.

Note

For ASPxPopupControl only:

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

If no navigation location is assigned for a window’s header link (the HeaderNavigateUrl and PopupWindow.HeaderNavigateUrl for ASPxPopupControl property is set to an empty string, “String.Empty“) no navigation is performed when clicking the header’s text or image.

Example

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:ASPxButton>

<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="popup"
    ShowHeader="true" HeaderText="Directed by: Ridley Scott"
    HeaderNavigateUrl="http://devexpress.com/">
    <HeaderImage Url="Images/new.png" AlternateText="No image">
    </HeaderImage>
    <HeaderStyle ForeColor="#666677" Font-Size="12px" />
    <ContentStyle ForeColor="#666677" Font-Names="Tahoma" Font-Size="10px" />
    <ContentCollection>
        <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>
        </dx:PopupControlContentControl>
    </ContentCollection>
</dx:ASPxPopupControl>
See Also