<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderForTitleAndIntro" Runat="Server">
<table width="100%" cellpadding="2" cellspacing="0">
<tr valign="top" class="ArticleTitle">
<td style="padding-left:10px;" valign="middle">
asp:SiteMapPath control</td>
</tr>
<tr>
<td class="ArticleContents">
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.
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderForContents" Runat="Server">
<div class="ArticleContents">
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.
<p>
Its properties like <span class="DemoCP">BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. </span>
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 <span class="DemoCP">RenderCurrentNodeAsLink</span>=true.
</p>
Following are some important properties that are very useful.
<table width="100%" class="TutoPropPlaceHolder" border="1" cellpadding="2" cellspacing="1">
<tr>
<td class="DemoCP">PathSeparator</td>
<td>
Gets or sets Path separator text. (By default it is >.)
</td>
</tr>
<tr>
<td class="DemoCP">NodeStyle</td>
<td>
Sets the style of all nodes that will be displayed.
</td>
</tr>
<tr>
<td class="DemoCP">CurrentNodeStyle</td>
<td>
Sets the style on node that represent the current page.
</td>
</tr>
<tr>
<td class="DemoCP">RootNodeStyle</td>
<td>
Sets the style on the absoulte root node.
</td>
</tr>
<tr>
<td class="DemoCP">PathSeparatorStyle</td>
<td>
Sets the style of path separator.
</td>
</tr>
</table>
<!-- START - Demo Section -->
<table class="DemoPlaceHolder" border="1" cellpadding="2" cellspacing="4">
<tr>
<td class="DemoTitle">
DEMO : SiteMapPath
</td>
<td align="right">
<a class="DemoShowSource" href="../../misc/codeviewer/default.aspx?pagename=~/tutorials/controls/sitemappath.aspx" target="_blank">Show Source Code</a>
</td>
</tr>
<tr>
<td>
<asp:SiteMapPath runat="Server" ID="SiteMapPath1" BorderWidth="1" BorderStyle="Double" BorderColor="BurlyWood">
</asp:SiteMapPath>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
<!-- START - Server Side Code -->
<pre>
// SiteMapPath Control ///////////////////////////////
<asp:SiteMapPath runat="Server" ID="SiteMapPath1" BorderWidth="1" BorderStyle="Double" BorderColor="BurlyWood">
</asp:SiteMapPath>
</pre>
<!-- END - Server Side Code -->
</td>
</tr>
</table>
<!-- END - Demo Section -->
</div>
<br />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderFooter" Runat="Server">
</asp:Content>
Go Top