Right justify text in textbox in web page

Discussion in 'ASP .Net' started by John Wilson, Oct 8, 2005.

  1. John Wilson

    John Wilson Guest

    How do I do this?


    John Wilson
     
    John Wilson, Oct 8, 2005
    #1
    1. Advertising

  2. For an asp.net textbox server controlserver you can set the css style value
    via code, for example in page_load

    private void Page_Load(object sender, System.EventArgs e)
    {
    myTextBox.Style.Add("text-align","right");
    }


    --
    Regards

    John Timney
    ASP.NET MVP
    Microsoft Regional Director



    "John Wilson" <> wrote in message
    news:4348314e$0$38041$...
    > How do I do this?
    >
    >
    > John Wilson
    >
    >
     
    John Timney \(ASP.NET MVP\), Oct 8, 2005
    #2
    1. Advertising

  3. John Wilson

    John Wilson Guest

    Thanks John

    --
    John Wilson

    "John Timney (ASP.NET MVP)" <> wrote in message
    news:...
    > For an asp.net textbox server controlserver you can set the css style
    > value
    > via code, for example in page_load
    >
    > private void Page_Load(object sender, System.EventArgs e)
    > {
    > myTextBox.Style.Add("text-align","right");
    > }
    >
    >
    > --
    > Regards
    >
    > John Timney
    > ASP.NET MVP
    > Microsoft Regional Director
    >
    >
    >
    > "John Wilson" <> wrote in message
    > news:4348314e$0$38041$...
    >> How do I do this?
    >>
    >>
    >> John Wilson
    >>
    >>

    >
    >
     
    John Wilson, Oct 8, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tina

    Right Justify Hyperlink Buttons?

    Tina, Dec 8, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    617
    G Dean Blake
    Dec 9, 2004
  2. John Wilson

    right justify a column?

    John Wilson, Jun 21, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    676
    John Wilson
    Jun 22, 2005
  3. How to right justify a column

    , Jul 23, 2003, in forum: C Programming
    Replies:
    2
    Views:
    10,685
  4. Norman
    Replies:
    15
    Views:
    4,309
    Andrew
    Mar 6, 2007
  5. RichieRich

    Right Justify Amounts in TextBox

    RichieRich, Jun 23, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    127
    Mythran
    Jun 23, 2005
Loading...

Share This Page