467,876 Members | 1,208 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,876 developers. It's quick & easy.

Site map localisation (.net 2.0)

In my web.config file, I have the following:
<globalization culture="auto:en-gb" uiCulture="auto:en-gb"/>

In my Web.sitemap file, I have the following

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"
enableLocalization="true">
<siteMapNode url="Default.asp" resourceKey="Administration">

<siteMapNode url="Accounts_Users.aspx" resourceKey="AccountsUsers" />

</siteMapNode>

</siteMap>

I have several resource files called "Web.sitemap.resx" or
"Web.sitemap.en-gb.resx" etc that contain the following:
<data name="AccountsUsers.title" xml:space="preserve">

<value>Accounts and users</value>

</data>

<data name="Administration.title" xml:space="preserve">

<value>Administration</value>

</data>

However, when I look at this using the default resource file viewer, it
gives me a red exclamation mark saying that the "name" value is not a valid
identifier (I actually entered it using the default viewer rather than the
XML viewer.)

What I have done appears to agree with MSDN
(http://msdn2.microsoft.com/en-us/lib...27(VS.80).aspx) and my Wrox
book "Professional ASP 2.0".

So, any ideas where I've messed up?

Thanks in advance

Griff

Feb 14 '06 #1
  • viewed: 1122
Share:
1 Reply
Ah...

Re-reading the MSDN article, I see at the very top line that it says that it
reports a warning, but just to ignore this warning.

Ho hum...

Griff
Feb 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Olivier Carpentier | last post: by
1 post views Thread by Olivier Matrot | last post: by
3 posts views Thread by DBLWizard | last post: by
16 posts views Thread by Ben Sehara | last post: by
2 posts views Thread by fury | last post: by
3 posts views Thread by John Kotuby | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.