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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox formating

Status
Not open for further replies.

PeteCan

Programmer
Jan 15, 2002
60
GB
I have an asp page with a form in it. There are several large textboxes on the form, similar to this one.
When users enter the text they can space everything out nicely with paragraphs etc, but then when the data is extracted from the database to view it comes in one long text line with paragraphs etc removed. How can I get around this?
 
try this...
Code:
strText = Replace(objRS("TextField"),vbcrlf,"<BR>")

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Thanks for this, one question though. Do you I put this on the page which writes the information to the database or the one that reads the data from the database?
 
I tried it on the read one and it works. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top