how to use Align property

Posted by Skaftabali under CSS 3 on 11/7/2010 | Points: 10 | Views : 1380 | Status : [Member] | Replies : 2
Hi,



i have a table.In this table i use one back button.
like
<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">
</asp:LinkButton>

</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 botton.
Pls help me its very urgent




Responses

Posted by: Prasham on: 11/7/2010 [Member] Starter | Points: 25

Up
0
Down
Hello,

One option is in click event you can directly use like

lblbackcomn.Attributes.Add("cssClass", "forback[Your css class name]");

another option is write one generic javascript method, pass the controls clientid and css class name and call this method on OnClick event of link button.

Hope the above suggestions will give you some hint.

Thanks and Best Regards
Prasham

Skaftabali, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 11/7/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Good Day Skaftabali

Please do not post the same question twice, if you want to update it , just update only one dont create a new post.

Thanks

Thank you for posting at Dotnetfunda
[Administrator]

Skaftabali, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response