Skip to main content
A newer version of this page is available. .
Tab

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; }

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>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NavigateUrl property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also