Click or drag to resize
KaxMenuItemTarget Property
Gets or sets the target window or frame to display the Web page content linked to when the menu item is clicked.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[TypeConverterAttribute(typeof(TargetConverter))]
public override string Target { get; set; }

Property Value

Type: String

The target window or frame to load the Web page linked to when the Item is selected. Values must begin with a letter in the range of a through z (case insensitive), except for the following special values, which begin with an underscore:

_blankRenders the content in a new window without frames._parentRenders the content in the immediate frameset parent._selfRenders the content in the frame with focus._topRenders the content in the full window without frames.

The default value is empty string.
Remarks

Use the Target property to specify the frame or window that displays the Web page linked to when the menu item is clicked. The Web page is specified by setting the NavigateUrl property.

If this property is not set, the Web page specified by the NavigateUrl property is loaded in the current window.

Examples

The following example demonstrates how to use the Target property

ASPX:

<kettic:KaxMenu runat="server" ID="KaxMenu1">

<Items>

<kettic:KaxMenuItem Target="_blank" NavigateUrl="http://www.google.com" />

</Items>

</kettic:KaxMenu>

See Also