Click or drag to resize
KaxSiteMapNodeImageUrl Property
Gets or sets the URL to an image which is displayed next to the text of a node.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public override string ImageUrl { get; set; }

Property Value

Type: String
The URL to the image to display for the node. The default value is empty string which means by default no image is displayed.
Remarks
Use the ImageUrl property to specify a custom image that will be displayed before the text of the current node.
Examples

The following example demonstrates how to specify the image to display for the node using the ImageUrl property.

<kettic:KaxSiteMap id="KaxSiteMap1" runat="server">
<Nodes>
<kettic:KaxSiteMapNodeImageUrl="~/Img/inbox.gif" Text="Index"></kettic:KaxSiteMapNode>
<kettic:KaxSiteMapNodeImageUrl="~/Img/outbox.gif" Text="Outbox"></kettic:KaxSiteMapNode>
<kettic:KaxSiteMapNodeImageUrl="~/Img/trash.gif" Text="Trash"></kettic:KaxSiteMapNode>
<kettic:KaxSiteMapNodeImageUrl="~/Img/meetings.gif" Text="Meetings"></kettic:KaxSiteMapNode>
</Nodes>
</kettic:KaxSiteMap>

See Also