Hi guys,
I am using Repeater for menu purpose. I am binding it to web.sitemap file. I want to show images alongside title. For this I am using a custom property in sitemap like this
Code:
<siteMapNode url="~//" title="Home" description="go to home" ImageUrl="Images/home.png" >
And repeater is like this
Code:
<asp:Repeater runat="server" ID="Repeater1" DataSourceID="SiteMapDataSource1">
<ItemTemplate>
<asp:HyperLink ID="lnkMenuItem" runat="server" NavigateUrl='<%# Eval("Url") %>'><%# Eval("Title") %></asp:HyperLink>
</ItemTemplate>
</asp:Repeater>
But I am not getting the way to bind imageurl property to repeater. Kindly help me in the issue. Also not every node has image alongside the title.
Many thanks