Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text field formatting - databases

Status
Not open for further replies.

boyfromoz

Technical User
Feb 1, 2001
469
AU
I have a client with an access/asp driven site. Currently, they cut and paste text from a word document into a text box. This text is then uploaded into a database, and the text can then be palced anywhere within the site.

Problem is the formatting is lsot. no paragraphs no fonts etc,

Is there anyway to allow people to upload text into a database and keep relevant formatting?
 
You could take care of line feeds using Replace.

example:

dim strFormatted
strFormatted = Replace(Request(&quot;TextArea1&quot;), vbCRLF, &quot;<BR>&quot;)

To redisplay the text simple reverse it.


This could work for other special format characters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top