Last post Mar 04, 2008 08:37 AM by Tok Bek
Mar 03, 2008 09:38 AM|lallouna85|LINK
what is the equivalent for it in a content of a master page. dir='<% =GetGlobalResourceObject("Default.aspx.ar","Direction")%>'
Mar 03, 2008 02:52 PM|lallouna85|LINK
Help Pls how to direct a whole Content Page RightToLeft using Resource File
Mar 03, 2008 04:27 PM|Tok Bek|LINK
Did you try <body style="direction:rtr;"> ?
In my application i use Thems for managing directions.
I've created 2 Themes "LTR" and "RTL", i set the Theme by the language,
and each Theme has a different css style.
Mar 04, 2008 07:16 AM|lallouna85|LINK
you are writing the direction hard-coded I want to get the direction from a ressource,
is it a localized file or a globalized file???
Mar 04, 2008 07:47 AM|Tok Bek|LINK
If you want to do it this way, without using Themes, use Global Resource file.
(I hope i understand you correctly)
For client side element use it this way :
<body dir="<%= Resources.YourResourceFile.Key1 %>">
For server side controls use :
<asp:panel Direction="<%$ Resources:YourResourceFile, Key2 %>" runat="server" > </asp:panel>
Make sure that the Key match the right value you need.
For example :
the <body> key value should be - "rtl"
the <asp:panel> key value should be - "RightToLeft"
Mar 04, 2008 08:15 AM|lallouna85|LINK
You are amazing 1000 Thanks For Your Answer.
Mar 04, 2008 08:37 AM|Tok Bek|LINK
Again consider using themes for this, it is much more elegant and easy to maintain.