Hi Gerhard,
Regarding on this issue, I've also met some similar request before.
Actually, the ASP.NET 2.0 Sitemap provider based navigation engine does
allow us to do some dynamic customization on the sitemap structure that
will be displayed. Here are some possible means you can use:
1. If you're using the sitemappath control and want to hide the current
navigating path, you can use the following approach:
#How to: Programmatically Modify Site-Map Nodes in Memory
http://msdn2.microsoft.com/en-us/library/ms178425(VS.80).aspx
2. If you want to customize multiple navigation nodes(in Treeview or
Menu....), you may consider use the NodeDataBoundd events. In such event,
you can get each Node when it has been bound to data and you can choose to
change their Node properties(such as Text, NavigationUrl....). Thus, you
can change those Nodes(you do not want to display based on current user
role) to a fixed Text though you can not completely remove it. I've
provided some demo code snippet in the following thread:
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/brow
se_thread/thread/7e646764510649c6/2cb15f1cce88d372
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.