Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
in my application i am using web part and timer in my welcome page .now i want to add bread crumbs in my application and i have called web.sitemap in my application& added sitemappath control in master page but i cannot get root path at runtime....
help me genious.............

this is my web.sitemap page :

XML
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode url="CeeconsWelcome.aspx" title="Home"  description="This is Ceacons Home Page.">
    <siteMapNode url="EmployeeTask.aspx" title="Employee Task"  description="This page is to add Employees Task.">
      <siteMapNode url="EmployeeTaskListing.aspx" title="Employee Task Listing"  description="This page contains Employee task details" >
        <siteMapNode url="BearingAdd.aspx" title="ASP.Net"  description="ASP.Net  section" >
          <siteMapNode url="NoticeBoardListing.aspx" title="Creating Bread Crumbs with ASP.Net"  description="Creating Bread Crumbs with ASP.Net" />
        </siteMapNode>
        <siteMapNode url="NoticeBoard.aspx" title="Java Script"  description="Java Script Section" />
      </siteMapNode>
      <siteMapNode url="UserProfile.aspx" title="Articles"  description="Articles Section" />
    </siteMapNode>

  </siteMapNode>

</siteMap>


added in master page:

XML
<div>
                                       <asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="sitmap">
                                      </asp:SiteMapPath>
                                       </div>
Posted
Updated 9-Jul-12 2:29am
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900