Menu and selected items



I have a menu that only displays the top (static) level. I want to display a
menu item as 'selected' not only when it is clicked on ,but when a user is
accessing any page that is below that main pages' heirachy in the sitemap
(which is the datasource for the menu).

i.e. I want to have the parent item in the menu selected when a child page
(based on the sitemap heirachy) is being accessed.

Do I parse the sitemap file (note that I am using security trimming if that
makes a difference) or is there an eaiser/more practical way?

Thanks,
JJ


.



Relevant Pages

  • Re: Output SiteMapNodeCollection as an XML file?
    ... It should reproduce the security trimming for the current user. ... ' Gets the sitemap nodes and renders them ... Public Sub ProcessRequest _ ... XML reader it looks at the physical file and therefore bypasses security ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Output SiteMapNodeCollection as an XML file?
    ... **Basically I need a way of making an identical copy of the sitemap, ... XML reader it looks at the physical file and therefore bypasses security ... Reading the physical file was bypassing security trimming, ... code to parse the web.sitemap file and do the filtering myself. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Output SiteMapNodeCollection as an XML file?
    ... It should reproduce the security trimming for the current user. ... ' Gets the sitemap nodes and renders them ... Public Sub ProcessRequest _ ... XML reader it looks at the physical file and therefore bypasses security ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Output SiteMapNodeCollection as an XML file?
    ... It should reproduce the security trimming for the current user. ... ' Gets the sitemap nodes and renders them ... Public Sub ProcessRequest _ ... XML reader it looks at the physical file and therefore bypasses security ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET 2.0 menu question
    ... I use a menu control that is bound to a sitemap to display menu items, ... and I have to dynamically add some querystring value to that URL. ... I assume that I can't use the sitemap to specify such menu item? ...
    (microsoft.public.dotnet.framework.aspnet)