KaxMenuItemNavigateUrl Property |
Gets or sets the URL to link to when the item is clicked.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public override string NavigateUrl { get; set; }
Public Overrides Property NavigateUrl As String
Get
Set
public:
virtual property String^ NavigateUrl {
String^ get () override;
void set (String^ value) override;
}
abstract NavigateUrl : string with get, set
override NavigateUrl : string with get, set
Property Value
Type:
String
The URL to link to when the item is clicked. The default value is empty
string.
Remarks
Use the NavigateUrl property to specify the URL to link to when
the item is clicked. Use "~" (tilde) in front of an URL within the same ASP.NET
application. When specifying external URL do not forget the protocol (e.g.
"http://").
Examples
The following example demonstrates how to use the
NavigateUrl
property
<kettic:KaxMenu id="KaxMenu1"
runat="server">
<Items>
<kettic:KaxMenuItem Text="News" NavigateUrl="~/News.aspx"
/>
<kettic:KaxMenuItem Text="External URL"
NavigateUrl="http://www.example.com" />
</Items>
</kettic:KaxMenu>
See Also