Posted on 2011-10-04
Medium Priority
Last Modified: 2012-05-12
Is there a way in vb or c# to have the sitemap if the node hyperlink = # then dont show or do render without a hyperlink just text only.?

<asp:SiteMapPath ID="SiteMapPath1"  CssClass="navBread"  RenderCurrentNodeAsLink="True"
    runat="server" Font-Names="Verdana" Font-Size="0.6em" PathSeparator=" > " >
    <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" />
    <CurrentNodeStyle ForeColor="#333333" />
    <NodeStyle Font-Bold="True" ForeColor="#284E98" />
    <RootNodeStyle Font-Bold="True" ForeColor="#507CD1" />
Question by:Seven price
  • 2

Accepted Solution

OklahomaDave earned 1500 total points
ID: 36912461
Haven't had a chance to actually test this, but I suspect you can try overriding the OnRender method of the control, and test for the desired condition - being sure to call the base method *ONLY* if your condition isn't met.

Author Comment

by:Seven price
ID: 36912536
Yes, I was wondering did you have the correct syntax i can use?

Author Closing Comment

by:Seven price
ID: 36979865

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question