471,123 Members | 871 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

binding sitemappath with custom .sitemap file

Hi,

How can I bind sitemappath (breadcrumb control of asp.net) to a custom
..sitemap file?

By defualt its looking for web.sitemap file and giving me not found
exception.

Thanks
Danial
Apr 1 '06 #1
1 2998
DWS
Danial,
You link to your custom sitemap from the standard sitemap see this link.
http://msdn2.microsoft.com/en-us/library/ms178426.aspx

To use the sitemappath you just fill in the templates. It builds a table
and what I didn't know when I built my first one is that I should have use li
elements for maximum css designer effect but we're all learning here its 2.0
stuff. You might not even need the following.

<table>
<tr>
<asp:SiteMapPath ID="SiteMapPath1" runat="server"
RenderCurrentNodeAsLink="True"
PathDirection="CurrentToRoot" PathSeparator=""
SkipLinkText="">
<CurrentNodeTemplate>
<td>
<a id="A1" title='<%# Eval("description") %>'
runat="server">
<img id="Img1" runat="server" src='<%#
eval("image") %>' height="76" /><br />
<%# Eval("title") %>
</a>
</td>
</CurrentNodeTemplate>
<NodeTemplate>
<td>
<a href='<%# eval("url") %>' title='<%#
Eval("description") %>' runat="server">
<img runat="server" src='<%# eval("image") %>'
height="47" /><br />
<%# Eval("title") %>
</a>
</td>
</NodeTemplate>
</asp:SiteMapPath>
</tr>
</table>

Good Luck
DWS
"Danial" wrote:
Hi,

How can I bind sitemappath (breadcrumb control of asp.net) to a custom
..sitemap file?

By defualt its looking for web.sitemap file and giving me not found
exception.

Thanks
Danial

Apr 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Robert Camsky | last post: by
1 post views Thread by sean.marchetti | last post: by
3 posts views Thread by Uriah Piddle | last post: by
2 posts views Thread by =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post: by
1 post views Thread by =?Utf-8?B?bWljaGFlbHJp?= | last post: by
reply views Thread by Jeremy Olmstead | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.