Treeview bound to sitemap

R

Robert Dufour

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
 

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

Similar Threads


Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top