Skip to main content

MenuSettingsBase.Target Property

Gets or sets the window or frame to which to target the contents of the URLs associated with all links within a menu.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public string Target { get; set; }

Property Value

Type Description
String

A string which identifies the window or frame to which to target the URL content.

Remarks

Use the Target property to specify the common target (a window or frame) for all links within a menu.

Setting the Target property defines that when any link (the menu item whose NavigateUrl property is defined) is clicked within a menu, the client web browser navigates to the specified URL and displays it in the window or frame as specified by this property. The available values of the property are listed in the table below.

Member Description
name The name of the target window or frame.
_blank Load the linked document into a new blank window. This window is not named.
_parent Load the linked document into the immediate parent of the document the link is in.
_search Load the linked document into the browser search pane.
_self Load the linked document into the window in which the link was clicked (the active window).
_top Load the linked document into the topmost window.
See Also