Link to home
Start Free TrialLog in
Avatar of razo
razo

asked on

vb.net

i have a web form and i want the user to enter a text in some control and i want to save this text in a database. the problem is that i want to save the format of the text also. i have seen a software where they change the text to html and save the html in the database. Any idea of how to do this?
Avatar of HugoCode
HugoCode

If you use a textbox control, you can add a <font> tag before and after its text value, and set the properties of the font tag to the font properties of the control.
Store the whole thing in your db ( "<font color=black ...>" + textbox1.text + "</font>" )

Hope that helps,
Hugocode
Avatar of razo

ASKER

i want a refund for this question because i was able to solve it using a free control i downloaded from the internet called webpad. Webpad takes care of the format when the the text is saved to the database.
A request for a refund has been made.  Experts you have 72 hours to object.

SpideyMod
Community Support Moderator @Experts Exchange
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial