help: how to remove sitemap node

1 posts, 0 answers
  1. Mark de Torres
    Mark de Torres avatar
    58 posts
    Member since:
    Jan 2010

    Posted 17 May 2012 Link to this post

    Hi There,

    I have sitemapnode like the following:

     <siteMapNode   title="Administration" description="System Administration">
          <siteMapNode url="~/Administration/test1.aspx" title="Test 1" description="Test 1" />
          <siteMapNode url="~/Administration/test2.aspx" title="Test 2" description="test 3" />
          <siteMapNode url="~/Administration/test3.aspx" title="Test 3" description="Test 3" />

        <siteMapNode url="~/Search/TestSearch.aspx" title="Search"  description="Test Search" />

    I would like to remove sitemap node using method  RemoveNode() not in ItemDataBound. Is there any way?. RemoveNode() will load on OnViewLoaded()

    Please advise thank you
Back to Top