asp.net sitemap navigation
<p>I am working in a asp.net c# project that is using a sitemap navigation menu.  I wanted the active node to be displayed as active (using my css style) while the end user was browsing pages within that folder.  On my master page I added my sitemap navigation code and applied the following as my class settings.  The code that verifies if the current node should be marked selected works great until there is a page within the site that is being viewed but not listed in the sitemap (as I do not want that page to be a menu item). Here is my code from my master page that is within the class part of my nav item:</p>

<pre><code>class="nav-button &lt;%# SiteMap.CurrentNode.Equals(Container.DataItem) ? "selected" : "inactivenav" %&gt;"
</code></pre>

<p>Is there a way to either within this code to do a check to see if the page exist in the sitemap before trying to apply the css reference, or can I do a something in the code behind to accomplish this?</p>

<p>Any help would be great!  </p>

<p>Thanks</p>
