CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/23/2007 4:29:15 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Jackxxx
Asp.Net User
How can I apply custom images to my sitemap11/23/2007 4:29:15 PM

0/0

I have a masterpage with a treeview and a web.sitemap that populates it. Is there a way to apply custom images to the child (leaf) nodes?


Thank you

Jackxxx
jeremyh
Asp.Net User
Re: How can I apply custom images to my sitemap11/23/2007 7:55:08 PM

0/0

Take a look at this article and samples http://www.15seconds.com/issue/041117.htm

Hope it helps


Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
Amanda Wang - M
Asp.Net User
Re: How can I apply custom images to my sitemap11/26/2007 7:19:11 AM

0/0

Hi,

You can add the custom property for the sitemapnode in the web.sitemap, like below:

 -<siteMapNode title="root" url="" image="~/App_Themes/Theme1/image/007004.gif" >
     <siteMapNode title="Home Page" url="~/Index.aspx" />
     <siteMapNode title="Pubs" url="~/...." />
     <siteMapNode title="Calendar" url="~/..." />

And apply it for the nodes, like below:

 protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
    {
        SiteMapNode smn = (SiteMapNode)e.Item.DataItem;
        e.Item.ImageUrl = smn["image"];
    }

 

hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Philip and Alex's Guide to Web Publishing Authors: Philip Greenspun, Pages: 577, Published: 1999
The Design of Sites: Patterns, Principles, and Processes for Crafting a Customer-centered Web Experience Authors: Douglas K. Van Duyne, James A. Landay, Jason I. Hong, Pages: 762, Published: 2002
Web Design: The L Line, the Express Line to Learning Authors: Sue Jenkins, Pages: 547, Published: 2007
EBay Authors: Carole Matthews, John Cronan, Pages: 240, Published: 2007
Microsoft Expression Web for Dummies Authors: Linda Hefferman, Asha Dornfest, Pages: 386, Published: 2007
Starting a Yahoo! Business For Dummies Authors: Rob Snell, Pages: 410, Published: 2006
Custom Templates NOW!: How to Create Custom Templates in One Day Authors: Istvan Siposs, Pages: 0, Published: 2004
EBay: The Missing Manual Authors: Nancy Conner, Pages: 439, Published: 2005
Googlepedia: The Ultimate Google Resource Authors: Michael Miller, Pages: 782, Published: 2007

Web:
MSDN SharePoint - Development and Programming How to only apply a ... How to only apply a custom action to a special list? ... Microsoft.com site map ... Description="My Custom List" Image="/_layouts/images/itgen.gif"/> ...
How to use my own custom images for buttons in Menu? - Mambo ... Apr 23, 2008 ... I have hit a wall in figuring out how to use my custom rollover menu ....




Search This Site:










trying to understand a feature in myspace.

is drag & drop a bad practise?

bulk mail ..can i use a simple code and use the bcc box

is there a way?

smart navigation

webservice, backgroundworker or simple threading?

please help with this if statement error

if statement in asp with databound value

mappoint web service

how to encrypt

string

datasource config

i want material...

passing objects

page can not be displayed while clicking back button

email regular expression

creating a data access layer and creating a business logic layer videos?

getting server date and time .... how?

does anyone have good css files for the asp.net 2.0 menu control (horizontal)?

url mappings

how to find that internet connection is active or not?

can i do this client-side, in javascript?

oh lord! asp.net is slow!

only half image is printed

textbox backgroundcolor is always yellow in ie

how to add more index 'filtered by' on the help page of vs 2005

asp.net 1.1 - how to get path of referenced assemblies

horizontal sub menu

another question

<%# versus <% =

  Privacy | Contact Us
All Times Are GMT