• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 946
  • Last Modified:

SiteMapPath not showing seperator

Hello experts,

I am trying to use the ASP.NET control, SiteMapPath.

I have got a Web.sitemap and that is working great with the treeview but not the sitemappath.

The sitemappath works but it does not display the seperator...

it renders this html.

<span id="ctl00_BreadCrumb1_SiteMapPath1" style="font-family:Verdana;font-size:0.8em;">

<a href="#ctl00_BreadCrumb1_SiteMapPath1_SkipLink"><img alt="Skip Navigation Links" height="0" width="0" src="/KelloggsHellas/WebResource.axd?d=WSsGPLAMcazQ5XFJ7k3F_w2&amp;t=633255613643998295" style="border-width:0px;" /></a>

<span><a title="Home" href="/KelloggsHellas/Default.aspx" style="color:#5D7B9D;font-weight:bold;">Home</a></span>

<span style="color:#5D7B9D;font-weight:bold;">
      <img src="App_Themes/DefaultTheme/images/sepwhite.gif" alt="" style="border-width:0px;margin-left: 4px; margin-right: 4px; vertical-align: middle;" />
</span>

<span style="color:#333333;font-weight:bold;">Healthy Living</span>
<a id="ctl00_BreadCrumb1_SiteMapPath1_SkipLink"></a>

</span>

as you can see, it displays an image. I am very confused as i have not set this image and i cannot see it in the sitemappath properties list...

I have even tried to set the seperator in the template but to no avail...

can anyone help?
0
thomasmutton
Asked:
thomasmutton
  • 3
  • 3
1 Solution
 
valkyrie_ncCommented:
Can you post some of your sitemap file, where you designate the separator?

valkyrie_nc
0
 
thomasmuttonAuthor Commented:
<asp:SiteMapPath
            ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="0.8em" PathSeparator=" : ">
            <PathSeparatorStyle Font-Bold="True" ForeColor="#5D7B9D" />
            <CurrentNodeStyle ForeColor="#333333" />
            <NodeStyle Font-Bold="True" ForeColor="#7C6F57" />
            <RootNodeStyle Font-Bold="True" ForeColor="#5D7B9D" />
</asp:SiteMapPath>
0
 
valkyrie_ncCommented:
When you tried the PathSeparatorTemplate, did you remove the PathSeparator attribute from the <asp:SiteMapPath> tag?  From the code you posted, I'd guess that it's seeing the PathSeparatorStyle, and is creating a default PathSeparatorTemplate in the absence of one, and overriding your PathSeparator attribute that you've already declared.  It might be an either/or kind of situation.  Have you tried removing the PathSeparatorStyle and putting that HTML directly into the PathSeparator attribute?

   <asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="0.8em" PathSeparator=" <span style='font-weight: bold; color: #5D7B9D;'>:</span> "> ...

hth

valkyrie_nc
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
thomasmuttonAuthor Commented:
Hi, i did as you said and put the span tag in

this is what it generates still

<span id="ctl00_BreadCrumb1_SiteMapPath1" style="font-family:Verdana;font-size:0.8em;"><a href="#ctl00_BreadCrumb1_SiteMapPath1_SkipLink"><img alt="Skip Navigation Links" height="0" width="0" src="/KelloggsHellas/WebResource.axd?d=WSsGPLAMcazQ5XFJ7k3F_w2&amp;t=633255613643998295" style="border-width:0px;" /></a><span><a title="Home" href="/KelloggsHellas/Default.aspx" style="color:#FF8000;font-weight:bold;">Home</a></span><span style="color:#990000;font-weight:bold;">
      <img src="App_Themes/DefaultTheme/images/sepwhite.gif" alt="" style="border-width:0px;margin-left: 4px; margin-right: 4px; vertical-align: middle;" />
      </span><span style="color:#333333;font-weight:bold;">About Kelloggs</span><a id="ctl00_BreadCrumb1_SiteMapPath1_SkipLink"></a></span>

If i try to style the seperator, it will style the background but will show no text which is very odd.

This is very confusing as its outputting an image which you cannot set anywhere...
0
 
thomasmuttonAuthor Commented:
I fixed it. There is a propert called "EnableTheming" and turning that to false made the seperator appear. Very strange...
0
 
valkyrie_ncCommented:
Ahh, cool!  Glad you found that; I was stumped. :)

valkyrie_nc
0
 
Vee_ModCommented:
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now