Tab
A newer version of this page is available. Switch to the current version.

MenuItem.NavigateUrl Property

Gets or sets an URL which defines the navigation location.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue("")]
public string NavigateUrl { get; set; }
<DefaultValue("")>
Public Property NavigateUrl As String

Property Value

Type Default Description
String

String.Empty

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

Remarks

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.

Example

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" />
</dx:ASPxMenu>
See Also