Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 12030 |  Welcome, Guest!   Register  Login
Home > Tutorials > ASP.NET Tutorials > SiteMapDataSource

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


asp:SiteMapDataSource control
The SiteMapDataSource control is used as a data source to place a site map (breadcrumbs) to the website. A site map is a way to present all folders and pages of the website.
 
Ads
The SiteMapDataSource control is used as a data source to place a site map (breadcrumbs) to the website. A site map is a way to present all folders and pages of the website. A site map is a way to present all folders and pages of the website. The site map information can appear in many forms. SiteMapDataSource control is used generally as a data source for asp:SiteMapPath control.

By default, this control takes root's web.sitemap file as the source file to display sitemap.



Some Important Properties of SiteMapDataSource Control
SiteMapProvider Gets or sets the name of the site map provider. This information is written in web.config file.
StartingUrlNode Used to set the URL in the sitemap that will be considered as root.
ShowStartingNode true/false. Whether to show starting node or not.
DEMO : SiteMapDataSource Show Source Code
Skip Navigation LinksHome > Tutorials > SiteMapDataSource control tutorials  
                    
                    
// SiteMapPath Control ///////////////////////////////
<asp:SiteMapPath runat="Server" ID="SiteMapPath1" BorderWidth="1" BorderStyle="dotted" BorderColor="red">
</asp:SiteMapPath>

// SiteMapNode used to display SiteMap ///////////////////////////////
// Place following code into web.sitemap file and place it into the root folder of your application
<siteMapNode url="~/default.aspx" title="Home"  description="Go to home page">
    <siteMapNode url="~/tutorials/default.aspx" title="Tutorials"  description=".NET Tutorials">
      <siteMapNode url="~/tutorials/controls/sitemapdatasource.aspx" title="SiteMapDataSource Control" description="SiteMapDataSource Control tutorials" />
    </siteMapNode>
</siteMapNode>


                    





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. | 6/18/2013 11:26:06 PM