What you want to see on DotNetFunda.com ?
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 2461 |  Welcome, Guest!   Register  Login
Home > Tutorials > ASP.NET Tutorials > SiteMapPath

Silverlight Tutorials | Report a Bug in the Tutorial
Found interesting? Add this to:


asp:SiteMapPath control
The SiteMapPath control is used to add a site map (breadcrumbs) to the website. A site map is a way to present all folders and pages of the website.
 
The SiteMapPath control is used to add a site map (breadcrumbs) to the website. A site map is a way to present all folders and pages of the website.

Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <span/> tag. Generally current page reference is not rendered as a link, however, it can be made clickable by setting RenderCurrentNodeAsLink=true.

Following are some important properties that are very useful.
PathSeparator Gets or sets Path separator text. (By default it is >.)
NodeStyle Sets the style of all nodes that will be displayed.
CurrentNodeStyle Sets the style on node that represent the current page.
RootNodeStyle Sets the style on the absoulte root node.
PathSeparatorStyle Sets the style of path separator.
DEMO : SiteMapPath Show Source Code
Skip Navigation Links  
                    
                    
// SiteMapPath Control ///////////////////////////////
<asp:SiteMapPath runat="Server" ID="SiteMapPath1" BorderWidth="1" BorderStyle="Double" BorderColor="BurlyWood">
    </asp:SiteMapPath>


                    





About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 8:38:51 AM