More in this section

Forums / Bugs & Issues / asp:SiteMapPath doesn't work in 4.1

asp:SiteMapPath doesn't work in 4.1

3 posts, 1 answered
  1. Damian
    Damian avatar
    27 posts
    Registered:
    01 Dec 2010
    25 Apr 2011
    Link to this post
    I have and asp:SiteMapPath control on the master page that shows breadcrumbs.  It worked fine in 4.0 and 4.0 SP1 but after upgrading to 4.1, it is completely blank. 

    Showing the entire sitemap of the site still works fine, but the SiteMap.CurrentNode property is null on all public pages.  <siteMap defaultProvider="SitefinitySiteMap"> is still in place in web.config.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    26 Apr 2011
    Link to this post
    Hi Damian,

    Try using SiteMapBase.GetActualCurrentNode() method to get the current node. The GetActualCurrentNode returns PageSiteNode object.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Answered
  3. Damian
    Damian avatar
    27 posts
    Registered:
    01 Dec 2010
    26 Apr 2011
    Link to this post
    That worked.  Thanks!
3 posts, 1 answered