Home
About Me
Categories
C#
(11)
ASP.NET
(34)
JavaScript
(6)
CSS
(1)
XSLT
(1)
Unit Testing
(22)
Architecture
(23)
Ajax
(8)
LINQ to SQL
(2)
ASP.NET MVC
(5)
Life
(18)
Book Reviews
(2)
WPF
(13)
Projects
(2)
Displaying External Links Using Web.SiteMap
published on 5/29/2008 8:05:35 PM
Sometimes you have a need to show a link to an external URL. If you create a simple siteMapNode in the Web.siteMap file then it won't be displayed.
The following won't work:
<siteMapNode url="http://www.azamsharp.com" title="Blog" />
You can make this work by simply including the roles attribute to the siteMapNode element and assigning a wild card "*" value.
<siteMapNode url="http://www.azamsharp.com" title="Blog" roles="*" />
Name:
Name:
Email:
Comment/Feedback: