Adding Custom Properties to XML Site Maps in ASP.NET 2.0

I published a step by step tutorial on using Master Pages and Site Navigation last week.  One of the questions that someone posted in the comments was whether there was an ability with Site Navigation to add custom properties or settings on a per-node basis.  For example: a custom icon property (eg: imageUrl) for each item in the Site Map that could then be later rendered by the new asp.net 2.0 menu control on a page:

   <siteMapNode url="default.aspx" title="Home"  description="The home page" imageUrl="home.gif">

Betrand just published a cool blog post + source code sample that shows exactly how to-do this.  You can read it here.

Hope this helps,

Scott

 

Published Tuesday, January 24, 2006 2:15 PM by ScottGu

Comments

# re: Adding Custom Properties to XML Site Maps in ASP.NET 2.0

Thursday, January 26, 2006 6:38 AM by Andrey Skvortsov
I could say-the BEST blog out there on ASP.NET and related;-)
Thanks,Scott,very interesting info as usual.

# re: Adding Custom Properties to XML Site Maps in ASP.NET 2.0

Thursday, January 26, 2006 3:33 PM by cowgaR
I second the BEST ASP.NET blog...

it's logical, he's the BOSS =)