Skip to main content

MenuItem.NavigateUrl Property

Gets or sets an URL which defines the navigation location.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public string NavigateUrl { get; set; }

Property Value

Type Default Description
String String.Empty

A string value which represents an URL where the client web browser will navigate.


Use the NavigateUrl property to specify an URL to which the client web browser navigates whenever the current menu item is clicked. If the NavigateUrl property is assigned, the item serves as a link. If this property is set to an empty string (String.Empty) no navigation is performed when clicking on the item.


The following example illustrates how to use the NavigateUrlFormatString property to specify the NavigateUrl property with two parameters.

<dx:ASPxMenu ID="ASPxMenu1" runat="server" NavigateUrlFormatString="Categories.aspx?id={0}">
    <dx:MenuItem Text="Cat1" NavigateUrl="1" />
    <dx:MenuItem Text="Cat2" NavigateUrl="2" />
See Also