Textbox interpreting html tags (like the label)

Discussion in 'ASP .Net Web Controls' started by studen771, Apr 5, 2005.

  1. studen771

    studen771 Guest

    Thanks in advance to anyone whom can help :)

    I'm assuming if this is possible, it would have to be through a custom
    control...
    the <asp:label> is able to interpret literal html tag input into its .text
    propety and produce formatted strings in its out put. (i.e.,
    mylabel.text="<b>Hi,</b> name is Joe Blow.") and it will bold the Hi, in its
    response.

    however, I would like to do this with a textbox. Can this be done and if so
    can anyone lead me to informaiton resources to do this or offer an
    explanation.
    studen771, Apr 5, 2005
    #1
    1. Advertising

  2. Standard HTML textboxes do not support such formatting. They are plain text
    only.
    However, there are a number of Rich Textboxes available for free. Here's a
    list of 'em:
    http://SteveOrr.net/freecontrols/textboxes.aspx

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://SteveOrr.net



    "studen771" <> wrote in message
    news:...
    > Thanks in advance to anyone whom can help :)
    >
    > I'm assuming if this is possible, it would have to be through a custom
    > control...
    > the <asp:label> is able to interpret literal html tag input into its .text
    > propety and produce formatted strings in its out put. (i.e.,
    > mylabel.text="<b>Hi,</b> name is Joe Blow.") and it will bold the Hi, in
    > its
    > response.
    >
    > however, I would like to do this with a textbox. Can this be done and if
    > so
    > can anyone lead me to informaiton resources to do this or offer an
    > explanation.
    Steve C. Orr [MVP, MCSD], Apr 5, 2005
    #2
    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. tshad

    Label look like Textbox

    tshad, Nov 3, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,381
    tshad
    Nov 3, 2004
  2. localhost

    TextBox Style Like Label?

    localhost, Jan 7, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    29,345
    James Thomas
    Jan 7, 2005
  3. wapsiii
    Replies:
    1
    Views:
    1,035
    Darren Kopp
    Mar 31, 2006
  4. Alec S.
    Replies:
    5
    Views:
    656
    Alec S.
    Sep 11, 2004
  5. Knut Krueger
    Replies:
    8
    Views:
    235
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page