Hey i got a question, thought someone might know. When I request.form for a textarea all the text is clumped together in one string. Is there anyway to tell the textarea object to output the contents as a string with indents and spacing?
Or do u think i should just attempt to find a good rich text editor, and if so do u know of any good ones?
I normally replace line breaks with the HTML equivelant, which is <br />. This will retain the line breaks when the data is displayed on an HTML page. If you want to display the data in a text field again, you need to re-replace the <br /> elements with vbCrLf.
'| Replace line breaks with <br />
Dim strContent: strContent = Replace(Request.Form("yourData"), vbCrLf, "<br />")
That works wonders. Thanks!!!!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)