Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
On click parent node show the first child node in sitemap.
S G
Jan 14 2013 4:11 AM
1.6k
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
vs 2012 web developing
calling method from hlink