Last post Oct 01, 2006 03:16 AM by amersafi
Sep 27, 2006 04:15 AM|amersafi|LINK
i have a master page with localization but the problem is when i use master page the body in the code which contains the direction of the language will be disabled
<body runat="server" dir="<%$ Resources: Language %>
how can i move between the languages which one of them have right to left
Sep 29, 2006 07:15 AM|vivek_iit|LINK
You are setting the property (using explicit localization) incorrectly. You just mentioned the global resources first file name, you need to mention the property too which will come out of the resource file.
First create a Direction attribute in all your resource files, setting its property to RTL or LTR based on individual resource files.
Then set the same in the dir attribute of the <body> tag as:
dir="<%$ Resources: TestSiteResources,Direction
This will set the right direction as the value will come from the resouce file based on the current thread's culture.
Hope this helps,
Oct 01, 2006 03:16 AM|amersafi|LINK