473,379 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Textbox formatting

I have a TextBox(multiline) in which I want to display
HTML Formatted Text. The text is suppilied to textbox by
a database and it consist of Tags like <>, the tags are
HTML encode Automatically so instead of interperating
tags as HTML, tags are interperated as Text itself.
What should I do?
Thanks

Nov 17 '05 #1
2 2233
If I understand you correctly, you want to display the text as it would
display on an html page but inside of a text box. (e.g. if the text has bold
tags around it <b>My Text</b> it should appear bold in the text box)

Text boxes are rendered as normal <input> controls on the page. Text won't
display that way inside of a text box.

You may want to create your own "text box" using a table cell or css borders
so that you get the display effect you want.

If I'm wrong about what your end result should be then I would look at the
Server.HtmlEncode and Server.HtmlDecode methods which could help you display
the text inside of the text box as: "<b>My Text</b>"

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"shail" <gi****@yahoo.com> wrote in message
news:07****************************@phx.gbl...
I have a TextBox(multiline) in which I want to display
HTML Formatted Text. The text is suppilied to textbox by
a database and it consist of Tags like <>, the tags are
HTML encode Automatically so instead of interperating
tags as HTML, tags are interperated as Text itself.
What should I do?
Thanks

Nov 17 '05 #2
If I understand you correctly, you want to display the text as it would
display on an html page but inside of a text box. (e.g. if the text has bold
tags around it <b>My Text</b> it should appear bold in the text box)

Text boxes are rendered as normal <input> controls on the page. Text won't
display that way inside of a text box.

You may want to create your own "text box" using a table cell or css borders
so that you get the display effect you want.

If I'm wrong about what your end result should be then I would look at the
Server.HtmlEncode and Server.HtmlDecode methods which could help you display
the text inside of the text box as: "<b>My Text</b>"

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"shail" <gi****@yahoo.com> wrote in message
news:07****************************@phx.gbl...
I have a TextBox(multiline) in which I want to display
HTML Formatted Text. The text is suppilied to textbox by
a database and it consist of Tags like <>, the tags are
HTML encode Automatically so instead of interperating
tags as HTML, tags are interperated as Text itself.
What should I do?
Thanks

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Roberto Castro | last post by:
Hello! I have been assigned for the first time an adp Access project and so far I have managed to make the changes needed for some requirements. However, I am struggling to find the place where...
2
by: Neil | last post by:
Is there an editable RTF textbox control which allows the user to apply bold, italic, etc.? I tried the Microsoft Rich Textbox Control, but there doesn't seem to be a way to allow the user to...
3
by: trint | last post by:
Ok, I have a textbox that I want to check as one types each charactor for Currency formatting, another one for Date formating. Any help is appreciated. Thanks, Trint
6
by: Tom McLaughlin | last post by:
How can I determine the numbers of lines of text that are visible in a textbox? Tom
3
by: Adrian | last post by:
Hi, I have an xml doc in a string it all just runs to gether no crlf or indents, I want to lay it out in a textbox so each element is on its ownline and indented correctly. how do I do this ...
4
by: H-S | last post by:
Please help. This is a real puzzler! Originally posted on microsoft.public.dotnet.framework.windowsforms but no answer found! I have a read-only textBox which shows the results of a selection...
4
by: slinky | last post by:
Thanks in advance... I have a continuous style form with a field for each record called "STATUS". I simply want to have the form load and if the value of the textbox is "Inactive" I want the...
5
montzter
by: montzter | last post by:
Hi evryone, I'm having trouble in formatting the inputed data in the text box so that everytime user lost focus it will adjust its value to contain the format (#,####.##). ie user will input...
2
by: robertng90025 | last post by:
I'm having a problem with MS Access 2003 and its conditional formatting. I have textboxes on a continuous form whose left and right margins are set to 0.03 inches. Based on each textbox's...
12
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I want to plant an Easter Egg in our software. We have a TextBox that is multiline and used to display all sorts of messages on the screen for our operators based on database queries and such. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.