Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

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?
0
razo
Asked:
razo
  • 2
1 Solution
 
HugoCodeCommented:
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
0
 
razoAuthor Commented:
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.
0
 
SpideyModCommented:
A request for a refund has been made.  Experts you have 72 hours to object.

SpideyMod
Community Support Moderator @Experts Exchange
0
 
SpideyModCommented:
PAQ'd and all 100 points refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now