By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,469 Members | 996 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,469 IT Pros & Developers. It's quick & easy.

Treeview bound to sitemap

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.