|
Rank: Newbie Groups: Member
Joined: 9/15/2007 Posts: 2
|
I haven't been able to find any documentation on localization for the ASP.NET menu. How would I do this with a standard .net resource (resx) file? I'd like to be able to do something like:
Code: HTML/ASPX
<eo:MenuItem Text-Html="$resources:MyResources,My_Menu_Item_Resource_Key"></eo:MenuItem>
Similar to what web.sitemap and other asp.net server controls support. Am I missing something? Thanks so much!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi David, You are almost there except for the exact syntax is like this:
Code: HTML/ASPX
<eo:MenuItem
Text-Html="<%$ resources:MyResources,My_Menu_Item_Resource_Key %>">
</eo:MenuItem>
Note the <% and %> marker. Without that whatever you give to Text-Html would just be literally taken without any intervention from ASP.NET. Thanks
|
|
Rank: Newbie Groups: Member
Joined: 9/15/2007 Posts: 2
|
Thanks so much! Worked like a charm!
|
|