views:

8

answers:

0

Hello, I have a web.sitemap with several hundred nodes which contain the properties "url", "title", and "description." I then use a TreeView to display certain elements of this sitemap depending on the location of the file. My question is: how can i display the description associated with each node as plain text immediately below the link generated by the give node?

Example: in the web.sitemap i have the following node

<siteMapNode url="example.aspx#" title="Directory" description="This is the people directory"></siteMapNode>

I then use the TreeView like this:

<asp:SiteMapDataSource ID="SiteMapDataSource1"
      runat="server" ShowStartingNode="false" StartFromCurrentNode="true" />

 <asp:TreeView ID="mytreeview" runat="server" DataSourceID="SiteMapDataSource1" 
    ShowExpandCollapse="false" ShowLines="false" NodeStyle-VerticalPadding="10" ExpandDepth="0"
    HoverNodeStyle-Font-Underline="true">
</asp:TreeView>

I would like my end result to be:

<a href="example.aspx#">Directory</a><br />
This is the people directory

Can someone explain how i can make this happen?

Thank you.