System.Web.UI.WebControls.MenuItem.NavigateUrl Property

Gets or sets the URL to navigate to when the menu item is clicked.

Syntax

[System.ComponentModel.Editor("System.Web.UI.Design.UrlEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
[System.Web.UI.UrlProperty]
[System.ComponentModel.DefaultValue("")]
public string NavigateUrl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

A menu item can be in one of two modes: selection mode or navigation mode. By default, a menu item is in selection mode. To put a menu item into navigation mode, set the menu item's MenuItem.NavigateUrl property to a value other than an empty string ("").

When a menu item is in navigation mode, all selection events are disabled for that menu item. Clicking the menu item in navigation mode takes the user to the specified URL. You can optionally set the MenuItem.Target property to specify the window or frame in which to display the linked content.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0