Can you explain how to implement localization in web.sitemap please?
+1
A:
Use a global resource file.
App_GlobalResources\Web.sitemap.resx
Then use keys in the web.sitemap like;
<siteMapNode url="somepage.aspx" title="Name" resourceKey="PageName"/>
Dead account
2009-03-05 12:07:34
but in the resource what should i do,,means i have 5 resource file and i am using one resource file(cart.resx) for menu
peter
2009-03-25 05:46:44
You need to create a resx for the web.sitemap. Copy one from somewhere else and then put in "PageName" as the resource key and then put in the new value. Please upvote and mark as answer :)
Dead account
2009-03-25 09:51:37
means,, i didnt get u,,all breadcrumbs are coming in any one of 5 resource files ,,in resource file(.resx) what i have to do for title(breadcrumb)
peter
2009-03-25 11:31:13
A:
If you have global resources you can use it like this
<siteMapNode url="~/Default.aspx" Title="$resources:SiteMapLocalizations,HomePageTitle"></siteMapNode>
Where SiteMapLocalizations: is the resource Name HomePageTitle: thee resource Key
Reference: http://msdn.microsoft.com/en-us/library/ms178427.aspx
Pr0fess0rX
2010-07-26 10:22:17