473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SiteMap Confusion

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

Oct 17 '06 #1
1 1040
You are going about this the wrong way. Look at this:
http://quickstarts.asp.net/QuickStar...itenavapi.aspx

In the sitemap, you use resourceKey.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"shapper" <md*****@gmail.comwrote in message
news:11*********************@k70g2000cwa.googlegro ups.com...
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

Oct 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: chris.rust | last post by:
Has anyone else had any trouble setting up a sitemap view to be filtered by roles? We've put a cust role provider in place, and we can verify that it's only being called once for each...
1
by: mike | last post by:
I have 2 sites in my company. My .NET site uses a master page and a Menu control connected to a sitemap. In my sitemap file I would like to be able to do something like this: <sitemap>...
5
by: JJ | last post by:
Although this question involves Flash, I suspect the actual issue is an asp one.. I am trying to open the web.sitemap file in an .swf file enbedded in an asp page (I'm working in VS 2005). I...
4
by: shapper | last post by:
Hello, I have 2 questions about Asp.Net 2.0 web.sitemap: 1. Where can I find the list of all siteMapNode attributes? I looked eveywhere and couldn't find it. 2. I created a Web.sitemap...
4
by: shapper | last post by:
Hello, I am trying to convert an Asp.Net 2.0 XML sitemap file to a Google's sitemap file. I am posting the formats of both files. 1. How can I do the conversion? 2. And can I use an...
1
by: Tarun Mistry | last post by:
Hi guys, I want to create a sitemap (lets call it a map to avoid confusion with .NET sitemaps) for my website, as in, a single page that lists all of the other pages on my web site. e.g....
5
by: Tim Mackey | last post by:
hi, i have put my web.sitemap in /App_Data so i can edit it programatically via a web admin page, inheriting the modify permissions from the App_Data folder etc. i was hoping the provider would...
0
by: Chris | last post by:
Hi, i have a problem with the visibility of my sitemap. There is one role defined: "manager" There are two users: 'user1' (member of role manager) and 'user2' (not member). The login.aspx...
6
by: Olagato | last post by:
I need to transform this: <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"> <url> <loc>http://localhost/index.php/index./Paths-for-the-extreme-player</ loc> </url> <url>...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.