I'm using a sitemappath to render breadcrumbs for my website. However, I would like to render the breadcrumbs as an unordered list, rather than a collection of links with separators. I set up the item templates so they were <li>link goes here</li> but when
the control renders out there are a whole mess of <span> tags interspersed with the code:
All of those spans are causing the rendering of the list items to fail. I've used reflector to look at the sitemappath class and for the life of me, I can't figure out where those spans are coming from. If someone could point me in the right direction
on how to get rid of those spans, I'd really appreciate it
madrak
Member
94 Points
35 Posts
Render SiteMapPath as list
Dec 05, 2008 02:18 PM|LINK
All,
I'm using a sitemappath to render breadcrumbs for my website. However, I would like to render the breadcrumbs as an unordered list, rather than a collection of links with separators. I set up the item templates so they were <li>link goes here</li> but when the control renders out there are a whole mess of <span> tags interspersed with the code:
<span id="ctl00_BreadCrumbs_ctl00_bCrumb">
<a href="http://forums.asp.net/AddPost.aspx?ForumID=139#ctl00_BreadCrumbs_ctl00_bCrumb_SkipLink" mce_href="http://forums.asp.net/AddPost.aspx?ForumID=139#ctl00_BreadCrumbs_ctl00_bCrumb_SkipLink">
<img alt="Skip Navigation Links" height="0" width="0" src="/WebResource.axd?d=BRLKUIa_h4oUu6cuu9HbSA2&t=633579372516367115" mce_src="/WebResource.axd?d=BRLKUIa_h4oUu6cuu9HbSA2&t=633579372516367115" style="border-width:0px;" />
</a>
<span></span>
<span></span>
<span>
<a href="/visit/visit.aspx" mce_href="/visit/visit.aspx">Visit Options</a>
</span>
<span>
</li><li>
</span>
<span>
Register For Event
</span>
<a id="ctl00_BreadCrumbs_ctl00_bCrumb_SkipLink">
</a>
</span>
All of those spans are causing the rendering of the list items to fail. I've used reflector to look at the sitemappath class and for the life of me, I can't figure out where those spans are coming from. If someone could point me in the right direction on how to get rid of those spans, I'd really appreciate it
Thank you
-madrak
sitemappath list ul
madrak
Member
94 Points
35 Posts
Re: Render SiteMapPath as list
Dec 09, 2008 01:20 PM|LINK
My problem was solved using the control adapter found here: http://forums.asp.net/p/1081411/1683273.aspx