<%@ Page Language="C#" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Page Language="VB" %>
I got an email with this question and a request that I post the solution on my blog so here it is:
This question came up on the ASP.NET forums and I thought it was worth mentioning here. There are some instances when it would be useful to add an extra bit of detail to the end of a SiteMapPath. For example, lets say there is a MultiView on the page and you'd like the Path to look like:
Home >> Parent Page >> Current Page >> Current View
A SiteMapResolve event handler wouldn't really work here since we need intimate knowledge about the current page's controls. Here's a couple solutions.
Here's a question I get quite often. The problem: Menu and TreeView won't autoselect the current node as you're navigating around the site. It usually happens two ways. First: someone decided to bind the Menu or TreeView through DataSource instead of DataSourceID or Second: Someone wrote a custom SiteMapProvider. So what's happening?