Home > Archive > ASP .NET > April 2007 > Treeview bound to sitemap
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Treeview bound to sitemap
|
|
| Robert Dufour 2007-04-28, 7:06 pm |
| 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
| |
| Robert Dufour 2007-04-28, 7:06 pm |
| Found it
Thanks
"Robert Dufour" <bdufour@sgiims.com> wrote in message
news:uo6nIcciHHA.1884@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
>
>
>
>
|
|
|
|
|