S G

S G

  • NA
  • 92
  • 46.5k

On click parent node show the first child node in sitemap.

Jan 14 2013 4:11 AM
Hi all,
I am new in ASP.NET. I am creating a one website. In that website i am using a sitemap for menu,left menu. I dont have a content in the "Home" page. So when user click on the "Home" link/node i want to show content of a first child of the "Home". Sitemap Can not taking a blank url.

<siteMapNode url="~/Home/Home.aspx" title="Home" description="Home">
      <siteMapNode url="~/Home/HomePage1.aspx" title="Corporate Overview" description=""/>
      <siteMapNode url="~/Home/AboutUsPage.aspx" title="About Us" description="">
          <siteMapNode url="~/Home/AboutUs/AboutPage1.aspx" title="Mission and Values" description=""/>
          <siteMapNode url="~/Home/AboutUs/AboutPage2.aspx" title="Executive Team" description=""/>
      </siteMapNode>
      <siteMapNode url="~/Home/OtherPages.aspx" title="Products and Services" description=""/>
</siteMapNode>


As shown as above,
On click 'Home' node i want to show the page "HomePage1.aspx" , not a "Home.aspx".
Same, On click About Us node i want to show "AboutPage1.aspx" , not a "AboutUsPage".
Any one have a solution about this.