Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2011, 01:30 PM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile icons in menu control

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Context Menu icons aldwinenriquez .NET Framework 2.0 1 March 3rd, 2011 01:43 AM
Menu control kiwibrit BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 11 November 30th, 2009 04:11 PM
Creating Menu Icons sureshkumarct Beginning VB 6 2 January 23rd, 2006 04:28 AM
Icons in Menu ashu_from_india Pro VB 6 2 June 3rd, 2005 10:58 PM
Menu Icons snowy0 VB.NET 2002/2003 Basics 2 September 28th, 2004 08:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.