SiteMap Confusion

S

shapper

Hello,

I added to SiteMaps providers to my web site:

<!-- Site Map -->
<siteMap enabled = "true">

<!-- Site Map Providers -->
<providers>
<clear/>
<add
name = "SiteMapProvider_pt-PT"
siteMapFile = "~/App_Data/Web.pt-PT.sitemap"
type = "System.Web.XmlSiteMapProvider" />
<add
name = "SiteMapProvider_en-GB"
siteMapFile = "~/App_Data/Web.en-GB.sitemap"
type = "System.Web.XmlSiteMapProvider" />
</providers>
</siteMap>

In my VB or C# code I need to select one of this providers (I will use
one or the other according to culture), get all nodes, remove the nodes
which attribute visible is false (I added a attribute visible to all
nodes) and create a SiteMapDataSource.

This is the basic idea. I have been trying many things, including, xlst
but eventually I never reach the
final objective which is creating the SiteMapDataSource.

Could someone tell me how to make this work?

Thanks,
Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top