Home All Groups Group Topic Archive Search About

Textbox interpreting html tags (like the label)

Author
5 Apr 2005 4:51 AM
studen771
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.

Author
5 Apr 2005 5:29 AM
Steve C. Orr [MVP, MCSD]
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



Show quoteHide quote
"studen771" <studen***@discussions.microsoft.com> wrote in message
news:5D739B01-CB61-439E-8FD9-6D8DA60A9FF8@microsoft.com...
> 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.