Search code examples
asp.nettextboxright-to-left

ASP.Net textbox right to left


In ASP.Net, the cursor is on the left side and I would like to put it on the right side.

In Window form, there is right to left in the properties.

But there is none in ASP.Net

How to achieve so?


Solution

  • Use css style:

     { direction:rtl;}
    

    edit. example:

    <asp:TextBox ID="TextBox1" runat="server" CssClass="ltor"></asp:TextBox>
    

    and css:

    .ltor {direction:rtl;}