Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,


I have a table, in this table I use one back button:
<table style="width:auto" cellpadding="10" cellspacing="10">
   <tr>
       <td width="60px" class="forback"></td>
           <td width="60px" class="forback"></td>
           <td width="300px" class="forback"></td>
           <td width="78px" class="forback"></td>
           <td width="100px" class="forback" style="border:1px solid red">

           <asp:Image ID="Image2" runat="server"
            ImageUrl="~/images/arrowEn.gif" Height="10px" Width="15px"/>

            <asp:LinkButton ID="lblbackcomn" runat="server" Text="<%$ Resources:Homemaster,lblbackcomnltr%>"  onclick="lblbackcomn_Click">


     </td>
 </tr>
 </table>

this is class item i used in css
.forback{float:right; text-align:right;}
I want change direction of that button when I click Arabic button.
[Keith Barrow Edit]: escaped html characters.
Posted
Updated 6-Nov-10 21:18pm
v3
Comments
Keith Barrow 7-Nov-10 3:18am    
I removed your "Pls help me its very urgent" - this is consided very rude and you are less likely to get a response if you do this, please read the FAQs and guidance.

You need to tell the HTML which direction it is working in. In many HTML you can set:

<tag dir='RTL' />


To do this for the whole page, "tag" should be "html"

This looks helpful for the HTML side of things:
http://www.i18nguy.com/markup/right-to-left.html[^]
You should also look at ASP.net localization, it will save you the world of pain:
http://www.codeproject.com/KB/aspnet/AspNetLocalization.aspx[^]
 
Share this answer
 
you can use javascript,all you need is to get the id by using document.getElementById..after geting the id you can change the direction
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900