473,395 Members | 1,885 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,395 software developers and data experts.

Treeview bound to sitemap

In Vs2005 VB.net. How do you localize the title and the description of the
pages in the web.sitemap file?

For instance in the simple sitemap below
<?xml version="1.0" encoding="utf-8" ?>

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="Default.aspx" title="Login" description="Login" >

<siteMapNode url="Menu.aspx" title="Home" description="Home page" >

<siteMapNode url="admin\NewUser.aspx" title="Create User"
description="Create User" />

</siteMapNode>

</siteMapNode>

</siteMap>

In french I would want to have

<?xml version="1.0" encoding="utf-8" ?>

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="Default.aspx" title="Inscription"
description="Inscription" >

<siteMapNode url="Menu.aspx" title="Début" description="Page de début" >

<siteMapNode url="admin\NewUser.aspx" title="Créer usager"
description="Créer usager" />

</siteMapNode>

</siteMapNode>

</siteMap>

My users can selec the language and I set both the UIculture and culture of
the current thread, that works fine for everything else, but this is
different I guess basically there must be a way to change XML items
depending on the current thread. I know to put the translated values in resx
files but what do you do to extract and have the correct value show in the
treeview that is bound to this data source

Any help appreciated.

Bob


Apr 28 '07 #1
1 1999
Found it
Thanks
"Robert Dufour" <bd*****@sgiims.comwrote in message
news:uo**************@TK2MSFTNGP06.phx.gbl...
In Vs2005 VB.net. How do you localize the title and the description of the
pages in the web.sitemap file?

For instance in the simple sitemap below
<?xml version="1.0" encoding="utf-8" ?>

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="Default.aspx" title="Login" description="Login" >

<siteMapNode url="Menu.aspx" title="Home" description="Home page" >

<siteMapNode url="admin\NewUser.aspx" title="Create User"
description="Create User" />

</siteMapNode>

</siteMapNode>

</siteMap>

In french I would want to have

<?xml version="1.0" encoding="utf-8" ?>

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="Default.aspx" title="Inscription"
description="Inscription" >

<siteMapNode url="Menu.aspx" title="Début" description="Page de début" >

<siteMapNode url="admin\NewUser.aspx" title="Créer usager"
description="Créer usager" />

</siteMapNode>

</siteMapNode>

</siteMap>

My users can selec the language and I set both the UIculture and culture
of the current thread, that works fine for everything else, but this is
different I guess basically there must be a way to change XML items
depending on the current thread. I know to put the translated values in
resx files but what do you do to extract and have the correct value show
in the treeview that is bound to this data source

Any help appreciated.

Bob


Apr 28 '07 #2

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

Similar topics

6
by: Alan Silver | last post by:
Hello, I want to show a treeview display of the contents of a sitemap file on another web site, chosen according to the currently logged on user. I know at run time the path to the sitemap file,...
10
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
2
by: Andy Sutorius via DotNetMonster.com | last post by:
I have a current website divided into 2 sections. Each section needs it's own sitemap and treeview. Is it possible to have 2 different sitemaps in a website? Everything that I have read says you...
3
by: Ray Booysen | last post by:
Hi all I have a treeview bound to a sitemap. Once the user is logged in, I'm wanting the menu to expand to include additional items from a database while retaining the items in the sitemap. Is...
0
by: Ray Booysen | last post by:
Hi all I have a treeview which is bound to a sitemap. However, the Populate event never fires. I'm wanting to add my custom menu items depending on items in the sitemap and I was put onto this...
0
by: Tor Inge Rislaa | last post by:
I need to expand/collapse TreeView nodes to show/hide childnodes by clikcing on the node text (instead of using the expand/collapse icon). Does anyone know how to do that? (What property has to be...
0
by: noneya22 | last post by:
I want to use a TreeView control as a one-level, vertical navigation menu. I'm using this control currently with a SiteMapDataSource and .sitemap file. I've written code that associates an image...
4
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
Hi, I am using VB.Net version 2 in a web application. I have a Navigation TreeView that is powered by a SiteMapDataSource linked to Web.sitemap file. This all works well. My questions is,...
0
by: vingomail | last post by:
Good Morning, I have two site map: "common.sitemap, loginuser.sitemap", two master page:" common.master, loginuser.master", in common.master, there is a Navigation control: TreeView...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.